Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

When you declare a pointer, you must give it a _____
A:
type
B:
type and name
C:
type, name, and value
D:
name and value
Answer: B
No answer description is available. Let's discuss.
The function that takes arguments to set the bits of cout is _____
A:
setf()
B:
bitset()
C:
ios()
D:
flat()
Answer: A
No answer description is available. Let's discuss.
In C++, the address operator is the following symbol _____
A:
>>
B:
&
C:
*
D:
!
Answer: B
No answer description is available. Let's discuss.
Classes hold _____
A:
data
B:
methods
C:
both data and methods
D:
neither data nor methods
Answer: C
No answer description is available. Let's discuss.
Another drawback to returning an error code from a function is that any error code returned by the function
A:
must be of the same type as return type of the function
B:
must not be a character
C:
cannot be checked in a main() program
D:
can have multiple meanings
Answer: A
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz