Filters
Question type

Study Flashcards

Which of the following is a valid C++ statement?


A) assert(0 = divisor) ;
B) assert(divisor != 0) ;
C) assert(divisor 0) ;
D) assert(divisor is 0) ;

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

An exception is an occurrence of an undesirable situation that can be detected during program compilation.

A) True
B) False

Correct Answer

verifed

verified

Which of the following statements throws a valid exception in C++?


A) throw.function() ;
B) throw 2;
C) throws str;
D) 4 throw;

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

Showing 41 - 43 of 43

Related Exams

Show Answer