Computer Science - Object Oriented Programming Using C++

1.
Programmer-defined functions can be
value-returning functions only
void functions only
either value-returning or void functions
Answer: Option
Explanation:
No answer description is available. Let's discuss.

2.
A class D can be derived from a class C, which is derived from a class B, which is derived from a class A
True
False
Answer: Option
Explanation:
No answer description is available. Let's discuss.

3.
To use the strcpy function, you must include the _____ header file in your program
assign.h
copy.h
string.h
strcopy.h
strcpy.h
Answer: Option
Explanation:
No answer description is available. Let's discuss.

4.
The number of the relational operators in the C language is
four
six
three
one
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

5.
Which of the following tells C++ to display numbers with two decimal places?
setdecimal(2)
setiosflags(2)
setiosflags(2.00)
setprecision(2)
Answer: Option
Explanation:
No answer description is available. Let's discuss.