Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

The #include instruction is called a
A:
direction
B:
directive
C:
merge instruction
D:
statement.
Answer: B
No answer description is available. Let's discuss.
Which of the following tells C++ to display numbers in fixed notation?
A:
setiosflags(fixed)
B:
setiosflags(fixed: :is)
C:
setiosflags(ios, fixed)
D:
setiosflags(ios::fixed)
Answer: D
No answer description is available. Let's discuss.
Which of the following declares and initializes an Integer variable named numltems?
A:
int numltems = 0;
B:
int numltems = '0';
C:
integer numltems = 0;
D:
numltems int = 0;
Answer: A
No answer description is available. Let's discuss.
One of the logical operators in the C language is represented by the symbol
A:
AND
B:
&&
C:
>=
D:
<=
Answer: B
No answer description is available. Let's discuss.
The last statement in a value-returning function is always _____
A:
};
B:
result expression;
C:
return;
D:
return expression;
Answer: D
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz