Interview Questions on Exceptions in C++ : (8)
Question: 1
(A) std::bad_exception
(B) std::logic_error
(C) std::exception
(D) std::runtime_error
Compiler
Level: Practitioner Category: exceptions
[Posted by: | ]
Question: 2
(A) True
(B) False
Compiler
Level: Beginner Category: exceptions
[Posted by: | ]
Question: 3
(A) True
(B) False
Compiler
Level: Practitioner Category: exceptions
[Posted by: | ]
Question: 4
(A) True
(B) False
Compiler
Level: Practitioner Category: exceptions
[Posted by: | ]
Question: 6
(A) True
(B) False
Compiler
Level: Practitioner Category: exceptions
[Posted by: | ]
Question: 7
(A) True
(B) False
Compiler
Level: Practitioner Category: exceptions
[Posted by: | ]
Question: 8
(A) Function declaration has error
(B) Behaviour is unknown
(C) Function will throw only standard exceptions defined in <exception>
(D) Function will not throw any exception
Compiler
Level: Practitioner Category: exceptions
[Posted by: | ]
C++ Online Test
Compile C++ code here
Browse C++ Categories
Loops Conditional Functions Operators Structure Enum Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Virtual Functions Abstract Class STL Singleton Class Exceptions C++11 C++17 C++20 Time & Space Complexity othersSwitch to C Questions