Computer Science - Object Oriented Programming Using C++
Exercise :: Object Oriented Programming Using C++ - Section 4
1. |
You typically initialize a String variable to _____ |
A. |
an asterisk | B. |
a space enclosed in single quotes | C. |
the number 0 | D. |
a zero-length string |
Answer: Option D
Explanation:
|
2. |
The set of instructions for how to tie a bow is an example of the _____ structure |
A. |
control | B. |
repetition | C. |
selection | D. |
sequence | E. |
switching |
Answer: Option D
Explanation:
|
3. |
If no exception is thrown ________ |
A. |
a catch block will cause an error | B. |
the first catch block coded will execute | C. |
the last catch block coded with execute | D. |
any catch blocks coded with be bypassed |
Answer: Option D
Explanation:
|
4. |
A program that predicts the exact sequence in which events will take place is said to be ________ |
A. |
compiled | B. |
interpreted | C. |
procedural | D. |
object-oriented |
Answer: Option C
Explanation:
|
5. |
A blueprint for creating an object in C++ is called _____ |
A. |
a class | B. |
an instance | C. |
a map | D. |
a pattern | E. |
a sketch |
Answer: Option A
Explanation:
|