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

0%
0

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

1 / 63

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

2 / 63

What is an error in C++?

3 / 63

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

4 / 63

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

5 / 63

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

6 / 63

An uncaught handler returns to _______________

7 / 63

Which header file is used to declare the standard exception?

8 / 63

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

9 / 63

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

10 / 63

Identify the correct statement about throw(type).

11 / 63

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

12 / 63

What is the difference between error and exception?

13 / 63

What happens if try catch block is not used?

14 / 63

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

15 / 63

What are the predefined exceptions in c++?

16 / 63

How many levels are there in exception safety?

17 / 63

Pick out the correct statement for error handling alternatives.

18 / 63

Which function is invoked when an unhandled exception is thrown?

19 / 63

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

20 / 63

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

21 / 63

Header file used for exception handling in C++?

22 / 63

What are the different types of exceptions?

23 / 63

When do we call that resource is leaked?

24 / 63

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

25 / 63

Which alternative can replace the throw statement?

26 / 63

How to handle error in the destructor?

27 / 63

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

28 / 63

What is the main purpose of the constructor?

29 / 63

What do you mean by ?No exception specification??

30 / 63

Exception handlers are declared with ____________ keyword.

31 / 63

Which statement is used to catch all types of exceptions?

32 / 63

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

33 / 63

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

34 / 63

What is an exception in C++ program?

35 / 63

What is meant by garbage collection?

36 / 63

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

37 / 63

Uncaught exception leads to ______________

38 / 63

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

39 / 63

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

40 / 63

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

41 / 63

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

42 / 63

Why is it expensive to use objects for the exception?

43 / 63

Where are standard exception classes grouped?

44 / 63

Which operations don?t throw anything?

45 / 63

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

46 / 63

1. Which keyword is used to throw an exception?

47 / 63

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

48 / 63

What kind of exceptions are available in c++?

49 / 63

Which handler is used to handle all types of exception?

50 / 63

Why do we need to handle exceptions?

51 / 63

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

52 / 63

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

53 / 63

What is meant by exception specification?

54 / 63

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

55 / 63

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

56 / 63

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

57 / 63

What id the syntax for catching any type of exceptions?

58 / 63

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

59 / 63

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

60 / 63

Which operator is used as catch-all handler?

61 / 63

Return type of uncaught_exception() is________________

62 / 63

What operation can be performed by destructor?

63 / 63

What will happen when an exception is not processed?

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