Computer Science - Object Oriented Programming Using C++

21.
The statement double val[15]={44.123456};
assigns the value 44.123456 to all members of the array val
assigns the value 44.123456 to val[0] and 0 to the rest of the members
gives an error message
assigns the value 44.12345 to val[1] and val[5]
Answer: Option
Explanation:
No answer description is available. Let's discuss.

22.
Which of the following C++ expressions will find the square root of the number 16?
pow (16, 2) (b) root (16, 2)
sqroot (16)
sqrt (16, 2)
sqrt (16)
Answer: Option
Explanation:
No answer description is available. Let's discuss.

23.
It is illegal to make objects of one class members of another class
True
False
depends upon the kind of object
Answer: Option
Explanation:
No answer description is available. Let's discuss.

24.
Catch blocks must _____
appear in every object-oriented program
appear within try blocks
appear immediately after throw statements
appear immediately after try blocks
Answer: Option
Explanation:
No answer description is available. Let's discuss.

25.
An exception specification begins with the keyword _____
exception
try
throw
catch
Answer: Option
Explanation:
No answer description is available. Let's discuss.