Object-Oriented Programming Answers Synergy MPPU
100 answers to the test. Score 80/100 points - Good
1. What is the name of a specialized class method for creating a new instance?
2. Which of the following can be attributed to the benefits of the "builder" template?
3. Which of the following can be attributed to class members?
4. Which of the following can be attributed to the disadvantages of the "lazy initialization" pattern?
5. Which of the following can be attributed to the benefits of the proxy template?
6. Is it true that MVC allows you to visualize the same data in different ways without changing the model?
7. The combination of combining all the properties of an object that determine its state and behavior into a single abstraction and restricting access to the implementation of these properties is called
8. What will the instruction look like, indicating that the described class belongs to the test package, which in turn is a subpackage of the bigtest class?
9. Is it true that an abstract class cannot contain method implementations?
10. Is it true that in an active MVC model, the view notifies the controller of data changes?
11. Is it true that in passive MVC the view notifies the controller of data changes?
12. What is the name of one of the fundamental mechanisms of object-oriented programming that allows a class to restrict access to its members?
13. Is it true that the MVC concept includes exactly three structural components: model, view and controller?
14. Is it true that the most common relationship between classes is that of dependency?
15. Is it true that one abstract class cannot be the parent of another abstract class?
16. Is it true that the main purpose of using the MVC concept is to differentiate between work logic and visualization?
17. Is it true that the main purpose of using the MVC concept is to simplify the architecture of the application?
18. Is it true that an aggregation relation can be used to depict hierarchical relationships between classes?
19. Is it true that the concept of "superclass" is synonymous with the parent class?
20. Is it true that nested class and member class are synonymous?
21. Is it true that a programmer cannot manage garbage collection?
22. What kinds of problems do the main design patterns solve?
23. What kinds of problems do behavioral design patterns solve?
24. What kinds of problems do generative design patterns solve?
25. What kind of problems do structural design patterns solve?
26. Which programming paradigm is the leading one in the Java language?
27. What command is used to execute the bytecode?
28. What groups of design patterns are usually distinguished?
29. What tasks does the final keyword allow to solve?
30. Which of the following requirements must be met to create an immutable object pattern in Java?
31. Which of the following statements about high-level design patterns are correct?
32. Which of the following statements about low-level design patterns are correct?
33. Which of the proposed statements are correct?
34. What types of links are used in the UML?
35. What types of entities are distinguished in the UML?
36. What is the main purpose of static import?
37. Which of the following statements is true?
38. What keyword can be used to refer to an instance of a class to itself?
39. How many sections can a block describing an interface on a UML class diagram contain?
40. How many sections can a class description block contain on a UML class diagram?
41. How does the abbreviation UML stand for?
42. Which of the following can be attributed to the disadvantages of the "lazy initialization" pattern?
43. Which of the following can be attributed to the benefits of the adapter pattern?
44.… to the benefits of the decorator pattern?
45. ... of the "delegation" pattern?
46. ... of the "proxy" template?
47. ... of the "iterator" pattern?
48. ... of the "team" pattern?
49. ... of the "linker" template?
50. ... of the
51.… to the benefits of the observer pattern?
52.… to the benefits of the immutable object pattern?
53. ... to the benefits of the "singleton" template?
54.… to the benefits of the mediator pattern?
55.… the prototype template?
56. ... of the "state" template?
57. ... of the "strategy" pattern?
58. ... of the "builder" template?
59. ... of the Factory Method pattern?
60.… the facade template?
61.… of the "keeper" template?
62.… the chain of responsibility template?
63.… of the template "template method"?
64. Which of the following can be attributed to class members?
65. What will the command for compiling the test class described in the test.java file look like?
66. What symbol on the class diagram represents the fact that an attribute has infinite multiplicity?
67. What is the symbol in the class diagram for the fact that an attribute is private?
68. What is the symbol on the class diagram for the fact that an attribute has a protected scope?
69. What is the symbol in the class diagram for the fact that an attribute has public scope?
70. Is it true that a finalize block is used to create a descriptor in Java?
71. What is the name of one of the fundamental mechanisms of object-oriented programming, which allows one class to extend the functionality of another, while borrowing fields and methods?
72. What is the name of one of the fundamental mechanisms of object-oriented programming, which allows elements with the same specification to have different implementations?
73. What is the name of a specialized class method designed to create a new instance?
74. What is the name of a specialized class method designed to destroy an existing instance?
75. What is the keyword used to indicate the parent class?
76.…. Is the keyword used to indicate that a class implements an interface?
77. What is the name of the mechanism that allows the JVM to work with primitive data types as objects?
78. What will the statement look like, adding all the classes from the test package to the scope of the described class?
79. Is it true that an abstract class cannot have instances?
80. What will the statement look like when it adds the test class from the test package to the scope of the described class?
81. What will be the form of the instruction indicating that the described class belongs to the test package?
82. How does the abbreviation JDK stand for?
83.… abbreviation for JRE?
84.… abbreviation for JVM?
85. What command can be used to create a vector named test from elements of type TestEl?
86. What command can be used to create an array named test of ten elements of type int?
87. How the command to run the Test class will look like, the ready byte code of which is contained in the Test.class file
88. What is the name of the organization that regulates the development of the UML?
89. Fields (data-members) of a class can be
90. Is it true that MVC allows multiple controllers to be connected to the same view?
91. The restriction imposed on the properties of objects to narrow or prevent the interchangeability of abstractions of different types is called
92. What is the name of one of the fundamental mechanisms of object-oriented programming that allows elements with the same specification to have different implementations?
93. What is the name of the mechanism that allows the JVM to work with primitive data types as objects?
94. Which of the following statements about low-level design patterns are correct?
95. Is it true that Java allows you to create an array of pre-known values?
96. Is it true that Java is an imperative programming language?
97. Is it true that Java is a declarative programming language?
98. What command can be used to create an array named test of ten elements of type int?
99. Is it true that there are classes that can have one and only one instance?
100. Is it true that the composition relation is a special case of the aggregation relation?
No feedback yet