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

0%
0

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

1 / 63

Which alternative can replace the throw statement?

2 / 63

Header file used for exception handling in C++?

3 / 63

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

4 / 63

What are the different types of exceptions?

5 / 63

Exception handlers are declared with ____________ keyword.

6 / 63

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

7 / 63

What is the main purpose of the constructor?

8 / 63

When do we call that resource is leaked?

9 / 63

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

10 / 63

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

11 / 63

What is meant by exception specification?

12 / 63

An uncaught handler returns to _______________

13 / 63

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

14 / 63

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

15 / 63

Pick out the correct statement for error handling alternatives.

16 / 63

Why is it expensive to use objects for the exception?

17 / 63

How to handle error in the destructor?

18 / 63

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

19 / 63

What do you mean by ?No exception specification??

20 / 63

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

21 / 63

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

22 / 63

Which handler is used to handle all types of exception?

23 / 63

Why do we need to handle exceptions?

24 / 63

What is meant by garbage collection?

25 / 63

1. Which keyword is used to throw an exception?

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

What are the predefined exceptions in c++?

29 / 63

What is an exception in C++ program?

30 / 63

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

31 / 63

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

32 / 63

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

33 / 63

Return type of uncaught_exception() is________________

34 / 63

What happens if try catch block is not used?

35 / 63

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

36 / 63

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

37 / 63

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

38 / 63

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

39 / 63

What is the difference between error and exception?

40 / 63

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

41 / 63

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

42 / 63

Where are standard exception classes grouped?

43 / 63

What is an error in C++?

44 / 63

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

45 / 63

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

46 / 63

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

47 / 63

Which operations don?t throw anything?

48 / 63

How many levels are there in exception safety?

49 / 63

What operation can be performed by destructor?

50 / 63

Identify the correct statement about throw(type).

51 / 63

What will happen when an exception is not processed?

52 / 63

What kind of exceptions are available in c++?

53 / 63

Which function is invoked when an unhandled exception is thrown?

54 / 63

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

55 / 63

What id the syntax for catching any type of exceptions?

56 / 63

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

57 / 63

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

58 / 63

Which header file is used to declare the standard exception?

59 / 63

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

60 / 63

Which statement is used to catch all types of exceptions?

61 / 63

Uncaught exception leads to ______________

62 / 63

Which operator is used as catch-all handler?

63 / 63

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

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