Correct Answer
verified
Short Answer
Correct Answer
verified
Short Answer
Correct Answer
verified
Multiple Choice
A) throw and catch can be used like gotos
B) the procedure for handling an error depends on the situation
C) need to handle built in exceptions
D) none of the above
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) void f1exception a,exception b) ;
B) void f1 ) exception a;b) ;
C) void f1 ) throw a,throw b;
D) void f1 ) thaw a,b) ;
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) differently from other classes
B) specialized only for exceptions
C) may not have objects declared of that class
D) all of the above
E) none of the above
Correct Answer
verified
Multiple Choice
A) try
B) throw
C) error
D) exiting
Correct Answer
verified
Short Answer
Correct Answer
verified
Multiple Choice
A) in all your programs
B) only when you can not handle the exception with simpler control structures
C) only when you use classes
D) in every function
Correct Answer
verified
Multiple Choice
A) ArithmeticError
B) DivideByZero
C) bad_alloc
D) MemoryError
Correct Answer
verified
Multiple Choice
A) the function definition and declaration should have a throw list
B) the function definition,but not the declaration should have a throw list
C) the function should have an empty throw list.
D) all of the above
Correct Answer
verified
True/False
Correct Answer
verified
Short Answer
Correct Answer
verified
View Answer
Multiple Choice
A) a base class exception can be passed to an exception parameter of the derived class
B) a derived class exception can be passed to an exception parameter of the base class
C) a base class exception parameter can be passed any type of exception
D) all of the above
Correct Answer
verified
Multiple Choice
A) has no member functions or member data
B) has only a default constructor
C) is illegal
D) A and B
Correct Answer
verified
Multiple Choice
A) identifies what type of exceptions are caught
B) identifies the different number of exceptions that can be caught
C) makes the catch block a function
D) must always be an e
Correct Answer
verified
Multiple Choice
A) execution of the try block stops
B) execution of the throw block stops
C) the program always exits
D) execution of the catch block stops
Correct Answer
verified
Short Answer
Correct Answer
verified
Showing 21 - 40 of 47
Related Exams