Computer Science - Object Oriented Programming Using C++

6.
The switch variable can be of
int type only
char type only
both int as well as char type
float type only
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

7.
Reference variables and const class members _____
must be assigned values in any derived class
must never be initialized in a base class
must be initialized, rather than assigned values
must not exist if a class is to be a base class
Answer: Option
Explanation:
No answer description is available. Let's discuss.

8.
You can code a default exception handler by creating a catch block
with no arguments
with a void argument
with an ellipsis as its argument
with an argument identical to that thrown
Answer: Option
Explanation:
No answer description is available. Let's discuss.

9.
Which of the following are void functions?
main
pow
sqrt
All of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

10.
Hiding individual components of an entry is _____
polymorphism
encapsulation
scaling
not recommended in C++
Answer: Option
Explanation:
No answer description is available. Let's discuss.