Explore topic-wise MCQs in Technical MCQs.

This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.

1.

Which type of program is recommended to include in try block?

A. Static memory allocation
B. Dynamic memory allocation
C. Const reference
D. Pointer
E.
Answer» C. Const reference
2.

Which of the following statements are true about Catch handler?i) It must be placed immediately after try block T.ii) It can have multiple parameters.iii) There must be only one catch handler for every try block.iv) There can be multiple catch handler for a try block T.v) Generic catch handler can be placed anywhere after try block.

A. Only i, iv, v
B. Only i, ii, iii
C. Only i, iv
D. Only i, ii
Answer» D. Only i, ii
3.

Return type of uncaught_exception() is ___________.

A. int
B. bool
C. char *
D. double
Answer» C. char *
4.

In nested try block, if inner catch handler gets executed, then __________?

A. Program execution stops immediately.
B. Outer catch handler will also get executed.
C. Compiler will jump to the outer catch handler and then executes remaining executable statements of main().
D. Compiler will execute remaining executable statements of outer try block and then the main().
Answer» E.