Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

Which of the following control structures is used in every program?
A:
repetition
B:
selection
C:
sequence
D:
switching
Answer: C
No answer description is available. Let's discuss.
A default exception block must be placed _____
A:
first among the catch blocks
B:
last among the catch blocks
C:
globally, at the top of the file
D:
at the end of all code in the program
Answer: B
No answer description is available. Let's discuss.
A function can make_________
A:
one throw
B:
one throw of each scalar type
C:
one throw of each programmer-defined type
D:
as many throws of as many types as necessary
Answer: D
No answer description is available. Let's discuss.
You indicate a variable is a pointer variable by placing a(n) _____ in front of the variable's name
A:
asterisk
B:
ampersand
C:
dollar sign
D:
exclamation point
Answer: A
No answer description is available. Let's discuss.
To create a variable, you must assign _____ to it
A:
a data type
B:
a name
C:
both a data type and a name
D:
the word var
Answer: C
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz