Computer Science - Object Oriented Programming Using C++

6.
A function that is called automatically each time an object is destroyed is a
constructor
destructor
destroyer
terminator
Answer: Option
Explanation:
No answer description is available. Let's discuss.

7.
We can output text to an object of class ofstream using the insertion operator « because
the ofstream class is a stream
the insertion operator works with all classes
we are actually outputting to cout
the insertion operator is overloaded in ofstream
Answer: Option
Explanation:
No answer description is available. Let's discuss.

8.
The operator that allocates new memory is _____
allocate
mem
new
next
Answer: Option
Explanation:
No answer description is available. Let's discuss.

9.
A comment
is a note that can be put into the source code
is ignored by the compiler.
starts with the /* character pair
All of the above
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

10.
Which of the following is(are) valid identifier(s)?
record_1
1 record
return
$tax
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.