Call
whatsapp
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
Cisco Training in Trivandrum, Trinity Technologies

No.1 Training Institute in Kerala

C++ - QUESTIONS : PART 18

Irrespective of exception occurrence, catch handler will always get executed. 

True

False
SHOW ANSWER

An exception can be of only built-In type. 

True

 False
SHOW ANSWER

Generic catch handler must be placed at the end of all the catch handlers. 

True

False
SHOW ANSWER

Generic catch handler is represented by ______________ . 

catch(..,)

catch(---)

catch(…)

catch( void x)
SHOW ANSWER

If inner catch handler is not able to handle the exception then__________ . 

Compiler will look for outer try handler

Program terminates abnormally

Compiler will check for appropriate catch handler of outer try block

None of these
SHOW ANSWER

Functions called from within a try block may also throw exception.

True

 False
SHOW ANSWER

We can prevent a function from throwing any exceptions. 

True

False
SHOW ANSWER

In nested try blocks, there is no need to specify catch handler for inner try block. Outer catch handler is sufficient for the program.

True

False
SHOW ANSWER

A try block can be nested under another try block. 

True

False
SHOW ANSWER

How can we restrict a function to throw certain exceptions?

Defining multiple try and catch block inside a function

Defining generic function within try block

Defining function with throw clause

It is not possible in CPP to restrict a function
SHOW ANSWER

A try block can be nested under another try block.

True

False
SHOW ANSWER

How can we restrict a function to throw certain exceptions?

Defining multiple try and catch block inside a function

Defining generic function within try block

Defining function with throw clause

It is not possible in CPP to restrict a function
SHOW ANSWER

Attempting to throw an exception that is not supported by a function call results in calling _____________ library function. 

indeterminate()

unutilized()

unexpected()

unpredicted()
SHOW ANSWER

The code of statements which may cause abnormal termination of the program should be written under_________ block. 

Try

catch

Finally

None of these
SHOW ANSWER

Can we define our exceptions in CPP? 

Yes

 No
SHOW ANSWER

In nested try block, if inner catch handler gets executed, then _____________ . 

Program execution stops immediately.

Outer catch handler will also get executed.

Compiler will jump to the outer catch handler and then executes remaining executable statements of main().

Compiler will execute remaining executable statements of outer try block and then the main().
SHOW ANSWER

Can we write throw clause inside catch handler?

Yes

No
SHOW ANSWER

Return type of uncaught_exception() is ________________ . 

int

bool

char *

double
SHOW ANSWER
BACK | NEXT
TRINITY SOFTWARE SOLUTIONS,IInd floor, Radheyam Towers, Gandhari Amman Kovil Road, Pulimood, Trivandrum - 1
0471-2334855 | 2335855 | 9447387064 | 9847003556 info@trinitytechnology.in