1
A blueprint for creating objects is called
A class
B attribute
C method
D inheritance
What looks wrong with Question 1?
Send anonymously
Cancel
2
A class is best described as a
A single object
B blueprint for objects
C data file
D function only
What looks wrong with Question 2?
Send anonymously
Cancel
3
A variable starts at 0. A loop adds 2 each time it runs, and it runs 5 times. The final value of the variable is ____
What looks wrong with Question 3?
Send anonymously
Cancel
4
The tree shows a class hierarchy with a parent and two children. The number of child classes is
A 1
B 3
C 2
D 4
What looks wrong with Question 4?
Send anonymously
Cancel
5
One red toy car made from a Car class, with its own data, is called
A method
B inheritance
C encapsulation
D object
What looks wrong with Question 5?
Send anonymously
Cancel
A an instance of a class
B a class itself
C a method only
D a variable type only
What looks wrong with Question 6?
Send anonymously
Cancel
7
A variable starts at 10. A loop adds 3 each time it runs, and it runs 4 times. The final value of the variable is ____
What looks wrong with Question 7?
Send anonymously
Cancel
8
The tree shows inheritance. A subclass inherits from its
A child class
B parent class
C sibling class
D leaf class
What looks wrong with Question 8?
Send anonymously
Cancel
9
Data stored in an object is called
A inheritance
B encapsulation
C attribute
D polymorphism
What looks wrong with Question 9?
Send anonymously
Cancel
10
Inheritance lets a Puppy subclass
A delete the parent
B avoid methods
C store only numbers
D reuse a parent class code
What looks wrong with Question 10?
Send anonymously
Cancel
11
A variable starts at 5. A loop adds 4 each time it runs, and it runs 3 times. The final value of the variable is ____
What looks wrong with Question 11?
Send anonymously
Cancel
12
A function that belongs to a class is called
A method
B encapsulation
C polymorphism
D constructor
What looks wrong with Question 12?
Send anonymously
Cancel
A exposes all data
B hides internal details
C removes methods
D copies objects
What looks wrong with Question 13?
Send anonymously
Cancel
14
A loop starts a counter at 0 and adds 2 each time while the counter is less than 12. The number of times the loop runs is ____
What looks wrong with Question 14?
Send anonymously
Cancel
15
A class gaining attributes and methods from a parent class is called
A polymorphism
B constructor
C inheritance
D instance
What looks wrong with Question 15?
Send anonymously
Cancel
16
A constructor, like the builder of a house, is used to
A delete an object
B print a class
C sort objects
D create and set up an object
What looks wrong with Question 16?
Send anonymously
Cancel
17
A loop starts a counter at 1 and adds 4 each time while the counter is less than 17. The number of times the loop runs is ____
What looks wrong with Question 17?
Send anonymously
Cancel
18
Hiding internal details and exposing only what is needed is called
A encapsulation
B constructor
C instance
D abstraction
What looks wrong with Question 18?
Send anonymously
Cancel
19
Polymorphism means different classes can
A share all data
B respond to the same method in their own way
C never use methods
D be identical
What looks wrong with Question 19?
Send anonymously
Cancel
20
In object oriented programming, a class, like a cookie cutter, is a
A blueprint for creating objects
B single object only
C type of loop
D file on disk
What looks wrong with Question 20?
Send anonymously
Cancel
21
Different classes responding to the same method in their own way is called
A instance
B abstraction
C polymorphism
D class
What looks wrong with Question 21?
Send anonymously
Cancel
22
A loop starts a counter at 0 and adds 3 each time while the counter is less than 18. The number of times the loop runs is ____
What looks wrong with Question 22?
Send anonymously
Cancel
23
A special method that creates and sets up an object is called
A abstraction
B class
C object
D constructor
What looks wrong with Question 23?
Send anonymously
Cancel
24
An object created from a class is called an
A instance
B function
C array
D variable
What looks wrong with Question 24?
Send anonymously
Cancel
25
One chocolate chip cookie created from a cookie cutter class is called
A instance
B class
C object
D attribute
What looks wrong with Question 25?
Send anonymously
Cancel