Home > Object Oriented Programming > Quizzes > Object Oriented Programming Practice Test: Exception Handling & Static Class Members
Object Oriented Programming Practice Test: Exception Handling & Static Class Members
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 65% Most missed: “Which data members among the following are static by default?”
Quiz on exception handling, catching class types, static data members and static member functions. Exception handling is a mechanism to deal with errors in a program. It is a way to handle errors in a controlled way, so that the program can continue to run even if an error occurs. In object-oriented programming, static class members are members of a class that are not associated with any particular object of the class. They are shared by all objects of the class. Here are some of the benefits of using exception handling in your code: It can help you to identify and handle errors in a... Show more
Object Oriented Programming Practice Test: Exception Handling & Static Class Members
Time left 00:00
25 Questions

1. If both base and derived class caught exceptions ______________
2. The keyword static is used _______________
3. Which data members among the following are static by default?
4. The static members are ______________________
5. Which keyword should be used to declare static variables?
6. If static data member are made inline, ______________
7. Which among the following handles the undefined class in program?
8. The catching of base class exception ___________________________ in java.
9. The static member functions _______________
10. Which condition among the following might result in memory exception?
11. Which among the following is wrong syntax related to static data members?
12. How many catch blocks can a single try block can have?
13. The static member functions ____________________
14. To catch the exceptions ___________________
15. Multiple catch blocks __________________
16. Which is the correct syntax for declaring static data member?
17. Which among the following best defines static variables members?
18. Which class is used to handle the input and output exceptions?
19. If a file that needs to be opened is not found in the target location then _____________
20. Why do we use finally block?
21. The static member functions __________________
22. Which among the following can’t be used to access the members in any way?
23. Which is the universal exception handler class?
24. Which among the following is not applicable for the static member functions?
25. Which among the following is correct definition for static member functions?