Quiz 2
Quiz 2
Quiz 2
Correct Correct
Correct Correct
Correct Correct
True (*)
False
Correct Correct
Java C
C++
Java
C (*)
Correct Correct
6. In object oriented programming, an object comprises of properties and
behaviors where properties represented as fields of the object and behavior is
represented as method. Mark for Review
(1) Points
True (*)
False
Correct Correct
7. In the code example below, identify any methods:
name
salary
empId
displaySalary() (*)
Correct Correct
True (*)
False
Correct Correct
Samples are the class and the rose plant is the instances of samples.
Rose plant is the class and the samples generated from the rose plant are
instances of that class. (*)
Rose plant is the object and samples are not instances of the plant because
they have not grown yet.
Samples of the rose plant are called classes and not the actual rose plant.
True (*)
False
Correct Correct
11. What is the purpose of adding comments in the code? Mark for Review
(1) Points
Correct Correct
12. Code within curly braces is called a �Block of code�. Mark for
Review
(1) Points
True (*)
False
13. You can set any number of breakpoints for your program. Mark
for Review
(1) Points
True (*)
False
Correct Correct
Correct Correct