Derived Classes, Templates & Exception Handling in C++ Quiz 3

0%
0

Derived Classes, Templates & Exception Handling in C++ Quiz 3

1 / 63

How many levels are there in exception safety?

2 / 63

Which handler is used to handle all types of exception?

3 / 63

Which statement is used to catch all types of exceptions?

4 / 63

What will happen when a programs throws any other type of exception other than specified?

5 / 63

What will happen if an exception that is thrown may cause a whole load of objects to go out of scope?

6 / 63

Identify the correct statement about throw(type).

7 / 63

What id the syntax for catching any type of exceptions?

8 / 63

What is meant by garbage collection?

9 / 63

Pick out the correct statement for error handling alternatives.

10 / 63

By default, what a program does when it detects an exception?

11 / 63

Header file used for exception handling in C++?

12 / 63

What will not be called when the terminate() is raised in the constructor?

13 / 63

Which is used to handle the exceptions in c++?

14 / 63

Uncaught exception leads to ______________

15 / 63

Which operator is used as catch-all handler?

16 / 63

What is most suitable for returning the logical errors in the program?

17 / 63

What are the disadvantages if use return keyword to return error codes?

18 / 63

What is the difference between error and exception?

19 / 63

What is an error in C++?

20 / 63

Which function is invoked when an unhandled exception is thrown?

21 / 63

Return type of uncaught_exception() is________________

22 / 63

What are the operators available in C++ for dynamic allocation and de-allocation of memories?

23 / 63

What operation can be performed by destructor?

24 / 63

What is the use of RAII in c++ programming?

25 / 63

How to handle error in the destructor?

26 / 63

Which is used to solve the memory management problem in c++?

27 / 63

If inner catch block is unable to handle the exception thrown then__________

28 / 63

How many types of standard exception are there in c++?

29 / 63

What will happen when an exception is not processed?

30 / 63

Why is it expensive to use objects for the exception?

31 / 63

What are the different types of exceptions?

32 / 63

What are the predefined exceptions in c++?

33 / 63

Where should we place catch block of the derived class in a try-catch block?

34 / 63

Which header file is used to declare the standard exception?

35 / 63

Which type of program is recommended to include in try block?

36 / 63

Which of the following is an exception in C++?

37 / 63

When do we call that resource is leaked?

38 / 63

How one can restrict a function to throw particular exceptions only?

39 / 63

What is an exception in C++ program?

40 / 63

In nested try catch blocks, if both inner and outer catch blocks are unable to handle the exception thrown, then ______________

41 / 63

An uncaught handler returns to _______________

42 / 63

Which function is invoked when we try to throw an exception that is not supported by a function?

43 / 63

What is Re-throwing an exception means in C++?

44 / 63

What do you mean by ?No exception specification??

45 / 63

In nested try-catch block, if the inner catch block gets executed, then______________

46 / 63

Where are standard exception classes grouped?

47 / 63

What will happen when we move to try block far away from catch block?

48 / 63

1. Which keyword is used to throw an exception?

49 / 63

Which of the following is best to include under try block?

50 / 63

What function will be called when we have an uncaught exception?

51 / 63

How Exception handling is implemented in the C++ program?

52 / 63

What can go wrong in resource management on c++?

53 / 63

Why do we need to handle exceptions?

54 / 63

The C++ code which causes abnormal termination/behaviour of a program should be written under _________ block.

55 / 63

What is meant by exception specification?

56 / 63

What kind of error can arise when there is a problem with memory?

57 / 63

What happens if try catch block is not used?

58 / 63

Which alternative can replace the throw statement?

59 / 63

Which part of the try-catch block is always fully executed?

60 / 63

Exception handlers are declared with ____________ keyword.

61 / 63

Which operations don?t throw anything?

62 / 63

What is the main purpose of the constructor?

63 / 63

What kind of exceptions are available in c++?

Provide Your Information

Your score is

The average score is 0%

0%

Qunoot e Nazilah
Dua e Hajat
4 Qul
6 Kalma
Dua-e-Akasha
Darood Akbar
Surah Fatiha
Dua-e-Ganj Ul Arsh
Dua-e-Jamilah
Ayat-ul-Kursi