⟩ What is Automatic variable?
Automatic variable, also called as local variable and it has scope only within the function block where it is defined.
Automatic variable, also called as local variable and it has scope only within the function block where it is defined.
An exception can be of only built-In type. a. True b. False
We can prevent a function from throwing any exceptions. a. True b. False
Functions called from within a try block may also throw exception. a. True b. False
In nested try blocks, if both inner and outer catch handlers are not able to handle the exception, then______________. a. Compiler executes only executable statements of main() b. Compiler issues compile time errors about it c. Program will be executed without any interrupt d. Program will be terminated abnormally
Irrespective of exception occurrence, catch handler will always get executed. a. True b. False
Generic catch handler must be placed at the end of all the catch handlers. a. True b. False
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()
If inner catch handler is not able to handle the exception then__________. a. Compiler will look for outer try handler b. Program terminates abnormally c. Compiler will check for appropriate catch handler of outer try block d. None of these
What are the advantages of using friend classes?
Explain advantages of using friend classes?