stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Computer Programming 2 Quiz Flashcards | StudBud
Explore
/
Computer Programming 2 Quiz
Computer Programming 2 Quiz
10 terms
·
StudBud Administration
·
2 plays
Reviews concepts from Computer Programming 2
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
How do you call the function
_func_
func:
print('func')
func()
2
How do you find the length of a str
len()
length()
3
What does this code output?
False
True
4
What does this code output?
'Dog', 'Cat', 'Bird', 'Hamster'
[Dog, Cat, Bird, Hamster]
Dog, Cat, Bird, Hamster
['Dog', 'Cat', 'Bird', 'Hamster']
5
How do you add to an array?
array.append()
array.create()
append.array()
array.add()
6
How do you create a class?
create_class
class example_class():
7
Which is an example of camel case?
camel_case
camelCase
CamelcasE
Camelcase
8
How do you delete 'Bird' from the array?
pets.delete('Bird')
pets.remove('Bird')
9
How do you declare an array?
ArRaY()
[] = array
array = []
Dec_array
10
What does OOP stand for?
Obtuse Object Processing
Oriented Object Programming
Object Oriented Programming
Old Orange Peel