Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

You define a structure type globally because _____
A:
you save many lines of code by not rewriting an identical structure definition in each function that uses it
B:
you will never change its definition
C:
it is required in C++
D:
All of the above
Answer: A
No answer description is available. Let's discuss.
Which of the following is(are) invalid string constant(s)?
A:
'7.15 pm'
B:
"i like e"
C:
"7.3el2"
D:
"1234el2"
Answer: A
No answer description is available. Let's discuss.
To enter a comment in a C++ program, you begin the comment with _____
A:
**
B:
&&
C:
\\
D:
@
Answer: E
No answer description is available. Let's discuss.
An array name is a _____
A:
subscript
B:
formal parameter
C:
memory address
D:
prototype
Answer: C
No answer description is available. Let's discuss.
What does C++ append to the end of a string literal constant?
A:
a space
B:
a number sign (#)
C:
an asterisk (*)
D:
a null character
Answer: D
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz