(A) Yes
(B) No
Category: C++ Programming Mcqs
C++ Programming Mcqs for Screening tests, Interviews, Viva and Other competitive exams. C++ Programming Mcqs section will help users to prepare mcqs of C++ Programming for various exams. Aspirants of Lecturer Computer Science, SST Computer Science, Subject Specialist Computer Science, Data Entry operator, Computer Programmer, Computer Operator, Software engineer and all other Competitive Exams can prepare their C++ programming portion from here.
How do we define the user defined exceptions?
(A) Inheriting class functionality
(B) Deleting and adding class member
(C) Overriding class functionality
(D) Inheriting and overriding exception class functionality
What will happen when handlers is not found for an exception?
(A) Raise an error
(B) Calls the standard library function terminate()
(C) Executes the remaining block
(D) Raise an error and executes the remaining block
To where does the program control transfers when the exception is arisen?
(A) handlers
(B) catch
(C) try
(D) throw
An exception is thrown using __ keyword in CPP.
(A) thrown
(B) threw
(C) throw
(D) throws
Exception handlers are declared with __ keyword.
(A) throw
(B) finally
(C) catch
(D) try
Can we define our exceptions in CPP?
(A) Yes
(B) No
The code of statements which may cause abnormal termination of the program should be written under __ block.
(A) Finally
(B) Catch
(C) Try
(D) None of the above