Quizack provides Online Quiz and Practice MCQs for Free. Please disable your Ad-Blocker so we can earn from ads and keep this project alive.
1. What are the four principles of object-oriented programming?
2. 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.
3. What is the difference between an interface and an abstract class?
4. What is the difference between early binding and late binding?
5. How does dynamic typing complicate troubleshooting?
6. What does a concrete class not have?
7. Static polymorphism uses method _ ?
8. In the context of OOP, what is composition?
9. An instance of which type of class cannot be created?
10. What is the function of a finalizer or destructor?
11. Which choice is not an OOP language?
12. What is the purpose of the finally block?
13. What is the main idea behind separation of concerns?
14. 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?
15. Methods and attributes that define an object are a kind of blueprint called what?
16. What is the scope of a class nested inside another class?
17. What is the difference between a parameter and an argument?
18. What does the value (0.5,0.5,0.5) indicate in the class diagram specification position: Coordinate = (0.5,0.5,0.5)?
19. Which statements best describe the Gang of Four design patterns called Memento and Observer?
20. What is the best example of a superclass and subclass relationship?
21. Are you required to return an object if it was passed by reference to a function, and why or why not?
22. Which choice is a benefit of using dependency injection?
23. Which type of function can be used for polymorphism?
24. _ describes an aggregation
25. 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?
26. 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?
27. What defines the catch block most accurately?
28. What is a copy constructor?
29. Why would you override a method of a base class?
30. The open/closed principle states that classes should be open for _ but closed for _.
31. How do object behaviour and attributes differ?
32. What is the function of a user diagram?
33. Why is unit testing harder in OOP than functional programming?
34. What is a reference to an object?
35. Which of these keywords are access specifiers?
36. What is the relationship between abstraction and encapsulation?
37. What type of inheritance may lead to the diamond problem?
38. Can abstract classes be used in multilevel inheritance?
39. What best describes what object-oriented programming does?
40. Which words in the following list are candidates for objects: trumpet, clean, enrage, leaf, tree, collapse, active, and lively?
41. Which type of function among the following shows polymorphism?
42. In addition to attributes and behaviours, what quality must a class possess?
43. Why is inheritance used when creating a new class?
44. Which is false for a member function of a class?
45. What is the result of using more abstraction?
46. Which statement about compositions and aggregations is true?
47. How are contents of a composition different from those of aggregation?
48. What are CRC Cards?
49. What is the purpose of static constructor?
50. When and how often is a static constructor called?
51. Why is code duplication so insidious?
52. Which is NOT one of the basic types of inheritance?
53. Which class has the highest degree of abstraction in a multilevel inheritance relationship of five levels?
54. 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?
55. What is a method?
56. If an object is passed by reference, the changes made in the function are reflected _.
57. In multilevel inheritance, one class inherits how many classes?
58. What are the five Creational Design patterns by the Gang of Four ?
59. Two classes combine private data members and provide public member functions to access and manipulate those data members. Where is abstraction used?
60. A language that does not support polymorphism but supports classes is considered what?
61. Which type of inheritance must be used so that the resultant is hybrid?
62. How are user stories different from use cases?
63. In context of OOP, what is association?
64. Which of the following is NOT an advantage of using getters and setters?
65. Which statement is true?
66. Which type of inheritance ,when done continuously, is similar to a tree structure?
67. Which statement best describes the method of inheritance in OOP?
68. Why would you implement composition using an id instead of a reference?
69. Which two blocks are used to handle and check errors?
70. F a local class is defined in a function, what is true for an object of that class?
71. When is a constructor executed?
72. Which type of constructor cannot have a return type?
73. Which code creates a new object from the Employee class?
74. 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?
75. What is an IS-A relationship?
76. What is encapsulation?
77. What is the best reason to use a design pattern?
78. When does static binding happen?
79. Why would you create an abstract class, if it can have no real instances?
80. For which case would the use of a static attribute be appropriate?
81. What is an example of dynamic binding?
82. A(n) ____ is a variable that is used within a function.
83. A class and its members can be described graphically using a notation known as the ____ notation.
84. In a sequence diagram, the _____ indicates when an object sends or receives a message.
85. In oop, you declare a class that extends another class. this is called ________.
86. A ____ method is also known as a help method.
87. Class ________ represents an image that can be displayed on a jlabel.
88. By convention, a class diagram contains the ____ following each attribute or method.
89. ________ members of a base class are never accessible to a derived class.
90. Protected members of a base class are like ________, but they may be accessed by derived classes.
91. The ________ class constructor is called before the ________ class constructor.
92. When an object of one class is a data field within another class, they are related by ____.
93. Multiple inheritance is when a ________ class has ________ base classes.
94. The class used as a basis for inheritance is the ____ class.
95. The ________ is used to protect important data.
96. Objects are created from abstract data types that encapsulate ________ and ________ together.
97. Every event object has the _____ method that returns the object that triggered the event.
98. A class is a(n) _____________ that is defined by the programmer.
99. Members of the class can be declared with auto, extern or register storage classes.
100. Object based language differs from Object oriented language as it does not support features. 1) Encapsulation 2) Inheritance 3) Dynamic Binding 4) Abstraction 5) Polymorphism Choose the correct option:
OS (Operating System)
SAP HANA XSJS
Evaluate your skill level in just 10 minutes with QUIZACK smart test system.
Copyright © 2021 Quizack . © 2021 All rights reserved