1. The class used as a basis for inheritance is the ____ class.
2. Multiple inheritance is when a ________ class has ________ base classes.
3. When an object of one class is a data field within another class, they are related by ____.
4. The ________ class constructor is called before the ________ class constructor.
5. Protected members of a base class are like ________, but they may be accessed by derived classes.
6. ________ members of a base class are never accessible to a derived class.
7. By convention, a class diagram contains the ____ following each attribute or method.
8. Class ________ represents an image that can be displayed on a jlabel.
9. A ____ method is also known as a help method.
10. In oop, you declare a class that extends another class. this is called ________.
11. In a sequence diagram, the _____ indicates when an object sends or receives a message.
12. A class and its members can be described graphically using a notation known as the ____ notation.
13. A(n) ____ is a variable that is used within a function.
14. What is an example of dynamic binding?
15. For which case would the use of a static attribute be appropriate?
16. Why would you create an abstract class, if it can have no real instances?
17. When does static binding happen?
18. What is the best reason to use a design pattern?
19. What is encapsulation?
20. What is an IS-A relationship?
21. Ou want a method with behavior similar to a virtual method--it is meant to be overridden --expect that it does not have a method body. It just has a method signature. What kind of method should you use?
22. Which code creates a new object from the Employee class?
23. Which type of constructor cannot have a return type?
24. When is a constructor executed?
25. F a local class is defined in a function, what is true for an object of that class?
26. Which two blocks are used to handle and check errors?
27. Why would you implement composition using an id instead of a reference?
28. Which statement best describes the method of inheritance in OOP?
29. Which type of inheritance ,when done continuously, is similar to a tree structure?
30. Which statement is true?
31. Which of the following is NOT an advantage of using getters and setters?
32. In context of OOP, what is association?
33. How are user stories different from use cases?
34. Which type of inheritance must be used so that the resultant is hybrid?
35. A language that does not support polymorphism but supports classes is considered what?
36. Two classes combine private data members and provide public member functions to access and manipulate those data members. Where is abstraction used?
37. What are the five Creational Design patterns by the Gang of Four ?
38. In multilevel inheritance, one class inherits how many classes?
39. If an object is passed by reference, the changes made in the function are reflected _.
40. What is a method?
41. A mobile phone is made up of components such as a motherboard, camera, and sensors. The motherboard represents all the functions of a phone, the display shows the display only, and the phone is represented as a whole. Which of the following has the highest level of abstraction?
42. Which class has the highest degree of abstraction in a multilevel inheritance relationship of five levels?
43. Which is NOT one of the basic types of inheritance?
44. Why is code duplication so insidious?
45. When and how often is a static constructor called?
46. What is the purpose of static constructor?
47. What are CRC Cards?
48. How are contents of a composition different from those of aggregation?
49. Which statement about compositions and aggregations is true?
50. What is the result of using more abstraction?
51. Which is false for a member function of a class?
52. Why is inheritance used when creating a new class?
53. In addition to attributes and behaviours, what quality must a class possess?
54. Which type of function among the following shows polymorphism?
55. Which words in the following list are candidates for objects: trumpet, clean, enrage, leaf, tree, collapse, active, and lively?
56. What best describes what object-oriented programming does?
57. Can abstract classes be used in multilevel inheritance?
58. What type of inheritance may lead to the diamond problem?
59. What is the relationship between abstraction and encapsulation?
60. Which of these keywords are access specifiers?
61. What is a reference to an object?
62. Why is unit testing harder in OOP than functional programming?
63. What is the function of a user diagram?
64. How do object behaviour and attributes differ?
65. The open/closed principle states that classes should be open for _ but closed for _.
66. Why would you override a method of a base class?
67. What is a copy constructor?
68. What defines the catch block most accurately?
69. There are five classes. Class E is derived from class D, D from C, C from B, and B from A. Which class constructor(s) will be called first if the object of E or D is created?
70. You have modules that are dependent on each other. If you change one module, you have to make changes in the dependent modules. What term is used to describe this problem, and what is a potential solution?
71. _ describes an aggregation
72. Which type of function can be used for polymorphism?
73. Which choice is a benefit of using dependency injection?
74. Are you required to return an object if it was passed by reference to a function, and why or why not?
75. What is the best example of a superclass and subclass relationship?
76. Which statements best describe the Gang of Four design patterns called Memento and Observer?
77. What does the value (0.5,0.5,0.5) indicate in the class diagram specification position: Coordinate = (0.5,0.5,0.5)?
78. What is the difference between a parameter and an argument?
79. What is the scope of a class nested inside another class?
80. Methods and attributes that define an object are a kind of blueprint called what?
81. Assume single inheritance is used with classes A and B while A is the base class. Then assume classes C, D, and E, where C is a base class and D is derived from C, then E is derived from D. Class C is made to inherit from class B. Which type of inheritance is reflected?
82. What is the main idea behind separation of concerns?
83. What is the purpose of the finally block?
84. Which choice is not an OOP language?
85. What is the function of a finalizer or destructor?
86. An instance of which type of class cannot be created?
87. In the context of OOP, what is composition?
88. Static polymorphism uses method _ ?
89. What does a concrete class not have?
90. How does dynamic typing complicate troubleshooting?
91. What is the difference between early binding and late binding?
92. What is the difference between an interface and an abstract class?
93. What parameters are required to be passed to a class constructor?Here they haven't mentioned any specific language so let's consider all languages.
94. What are the four principles of object-oriented programming?