Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

Which of the following is(are) valid identifier(s)?
A:
record_1
B:
1 record
C:
return
D:
$tax
Answer: A
No answer description is available. Let's discuss.
The operator that allocates new memory is _____
A:
allocate
B:
mem
C:
new
D:
next
Answer: C
No answer description is available. Let's discuss.
We can output text to an object of class ofstream using the insertion operator « because
A:
the ofstream class is a stream
B:
the insertion operator works with all classes
C:
we are actually outputting to cout
D:
the insertion operator is overloaded in ofstream
Answer: D
No answer description is available. Let's discuss.
Which of the following tells C++ to display numbers with two decimal places?
A:
setdecimal(2)
B:
setiosflags(2)
C:
setiosflags(2.00)
D:
setprecision(2)
Answer: D
No answer description is available. Let's discuss.
The number of the relational operators in the C language is
A:
four
B:
six
C:
three
D:
one
Answer: B
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz