Computer Science - Object Oriented Programming Using C++

36.
Which of the following declares and initializes an Integer variable named numltems?
int numltems = 0;
int numltems = '0';
integer numltems = 0;
numltems int = 0;
numltems integer = 0;
Answer: Option
Explanation:
No answer description is available. Let's discuss.

37.
Which of the following tells C++ to display numbers in fixed notation?
setiosflags(fixed)
setiosflags(fixed: :is)
setiosflags(ios, fixed)
setiosflags(ios::fixed)
Answer: Option
Explanation:
No answer description is available. Let's discuss.

38.
The #include instruction is called a
direction
directive
merge instruction
statement.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

39.
Another drawback to returning an error code from a function is that any error code returned by the function
must be of the same type as return type of the function
must not be a character
cannot be checked in a main() program
can have multiple meanings
Answer: Option
Explanation:
No answer description is available. Let's discuss.

40.
Classes hold _____
data
methods
both data and methods
neither data nor methods
Answer: Option
Explanation:
No answer description is available. Let's discuss.