0% found this document useful (0 votes)
11 views12 pages

OOP Final Exam

The document is a final exam for Object Oriented Programming in Java, consisting of 93 multiple-choice questions covering various topics such as core values of the university, encapsulation, abstraction, UML, exception handling, and Java syntax. It tests knowledge on fundamental concepts of OOP, Java data types, and programming constructs. The exam includes repeated questions, indicating a focus on key concepts and definitions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views12 pages

OOP Final Exam

The document is a final exam for Object Oriented Programming in Java, consisting of 93 multiple-choice questions covering various topics such as core values of the university, encapsulation, abstraction, UML, exception handling, and Java syntax. It tests knowledge on fundamental concepts of OOP, Java data types, and programming constructs. The exam includes repeated questions, indicating a focus on key concepts and definitions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

FINAL EXAM - OBJECT ORIENTED PROGRAMMING (JAVA)

1. What does PEOS stand for?


A. Personal Education Orientation Session
B. Program Education Orientation Scheme
C. Professional Education Orientation Seminar
D. Philippine Education Outline Standard
2. What is the main purpose of SOS in university orientation?
A. Student Orientation Services
B. Scholastic Organizational Setup
C. Student Operational Scheme
D. School Organizational Standard
3. Which of the following is NOT a core value of the university?
A. Integrity
B. Innovation
C. Profit
D. Excellence
4. What does the grading system use to compute the final grade?
A. Raw scores
B. Participation only
C. Attendance only
D. All of the above
5. Which of the following best describes encapsulation?
A. Wrapping data and methods into a single unit
B. Hiding data from users
C. Inheriting properties
D. Running multiple classes
6. What is the primary purpose of abstraction in OOP?
A. To hide implementation details
B. To reduce code size
C. To make code run faster
D. To compile better
7. Which concept allows objects to take many forms?
A. Encapsulation
B. Inheritance
C. Abstraction
D. Polymorphism
8. What does UML stand for?
A. Unified Modeling Language
B. Universal Method Library
C. Unified Method Logic
D. User Mode Language
9. In UML, what symbol represents inheritance?
A. Solid line with a hollow triangle
B. Dashed arrow
C. Solid arrow
D. Circle
10. What is high cohesion in OOP design?
A. A module doing a single, focused task
B. Using many global variables
C. Code duplication
D. Multiple responsibilities in one class
11. What does low coupling promote in software systems?
A. Unrelated classes
B. Modules depending on each other
C. Interdependent classes
D. Independent and modular classes
12. What is an example of responsibility-driven design?
A. Assigning roles to objects
B. Writing procedural code
C. Combining data and operations
D. Using recursion
13. Which design method emphasizes using real-world entities?
A. Object-based modeling
B. Logic-driven modeling
C. Responsibility-focused design
D. Entity-driven modeling
14. Which data type is used to store characters in Java?
A. char
B. character
C. string
D. text
15. What is the default value of an int variable in Java?
A. 0
B. null
C. undefined
D. 1
16. Which keyword is used to define a constant variable?
A. const
B. final
C. static
D. define
17. What is the purpose of a constructor?
A. To create methods
B. To initialize objects
C. To declare variables
D. To destroy objects
18. What is the correct syntax for a for-loop?
A. for(int i = 0; i < 10; i++)
B. loop(i = 0; i < 10; i++)
C. for i = 0 to 10
D. foreach i in range(10)
19. Which keyword is used to create an abstract class?
A. abstract
B. interface
C. static
D. final
20. How do you handle an exception in Java?
A. try-catch
B. if-else
C. loop
D. throw-error
21. What does the finally block do in exception handling?
A. It always executes
B. It handles the exception
C. It catches runtime errors
D. It rethrows the error
22. What is the parent class of all Java classes?
A. Object
B. System
C. Class
D. Exception
23. What is the output when an exception is thrown and not caught?
A. Program stops with an error
B. It continues execution
C. It skips the error
D. It returns null
24. What does PEOS stand for?
A. Personal Education Orientation Session
B. Program Education Orientation Scheme
C. Professional Education Orientation Seminar
D. Philippine Education Outline Standard
25. What is the main purpose of SOS in university orientation?
A. Student Orientation Services
B. Scholastic Organizational Setup
C. Student Operational Scheme
D. School Organizational Standard
26. Which of the following is NOT a core value of the university?
A. Integrity
B. Innovation
C. Profit
D. Excellence
27. What does the grading system use to compute the final grade?
A. Raw scores
B. Participation only
C. Attendance only
D. All of the above
28. Which of the following best describes encapsulation?
A. Wrapping data and methods into a single unit
B. Hiding data from users
C. Inheriting properties
D. Running multiple classes
29. What is the primary purpose of abstraction in OOP?
A. To hide implementation details
B. To reduce code size
C. To make code run faster
D. To compile better
30. Which concept allows objects to take many forms?
A. Encapsulation
B. Inheritance
C. Abstraction
D. Polymorphism
31. What does UML stand for?
A. Unified Modeling Language
B. Universal Method Library
C. Unified Method Logic
D. User Mode Language
32. In UML, what symbol represents inheritance?
A. Solid line with a hollow triangle
B. Dashed arrow
C. Solid arrow
D. Circle
33. What is high cohesion in OOP design?
A. A module doing a single, focused task
B. Using many global variables
C. Code duplication
D. Multiple responsibilities in one class
34. What does low coupling promote in software systems?
A. Unrelated classes
B. Modules depending on each other
C. Interdependent classes
D. Independent and modular classes
35. What is an example of responsibility-driven design?
A. Assigning roles to objects
B. Writing procedural code
C. Combining data and operations
D. Using recursion
36. Which design method emphasizes using real-world entities?
A. Object-based modeling
B. Logic-driven modeling
C. Responsibility-focused design
D. Entity-driven modeling
37. Which data type is used to store characters in Java?
A. char
B. character
C. string
D. text
38. What is the default value of an int variable in Java?
A. 0
B. null
C. undefined
D. 1
39. Which keyword is used to define a constant variable?
A. const
B. final
C. static
D. define
40. What is the purpose of a constructor?
A. To create methods
B. To initialize objects
C. To declare variables
D. To destroy objects
41. What is the correct syntax for a for-loop?
A. for(int i = 0; i < 10; i++)
B. loop(i = 0; i < 10; i++)
C. for i = 0 to 10
D. foreach i in range(10)
42. Which keyword is used to create an abstract class?
A. abstract
B. interface
C. static
D. final
43. How do you handle an exception in Java?
A. try-catch
B. if-else
C. loop
D. throw-error
44. What does the finally block do in exception handling?
A. It always executes
B. It handles the exception
C. It catches runtime errors
D. It rethrows the error
45. What is the parent class of all Java classes?
A. Object
B. System
C. Class
D. Exception
46. What is the output when an exception is thrown and not caught?
A. Program stops with an error
B. It continues execution
C. It skips the error
D. It returns null
47. What does PEOS stand for?
A. Personal Education Orientation Session
B. Program Education Orientation Scheme
C. Professional Education Orientation Seminar
D. Philippine Education Outline Standard
48. What is the main purpose of SOS in university orientation?
A. Student Orientation Services
B. Scholastic Organizational Setup
C. Student Operational Scheme
D. School Organizational Standard
49. Which of the following is NOT a core value of the university?
A. Integrity
B. Innovation
C. Profit
D. Excellence
50. What does the grading system use to compute the final grade?
A. Raw scores
B. Participation only
C. Attendance only
D. All of the above
51. Which of the following best describes encapsulation?
A. Wrapping data and methods into a single unit
B. Hiding data from users
C. Inheriting properties
D. Running multiple classes
52. What is the primary purpose of abstraction in OOP?
A. To hide implementation details
B. To reduce code size
C. To make code run faster
D. To compile better
53. Which concept allows objects to take many forms?
A. Encapsulation
B. Inheritance
C. Abstraction
D. Polymorphism
54. What does UML stand for?
A. Unified Modeling Language
B. Universal Method Library
C. Unified Method Logic
D. User Mode Language
55. In UML, what symbol represents inheritance?
A. Solid line with a hollow triangle
B. Dashed arrow
C. Solid arrow
D. Circle
56. What is high cohesion in OOP design?
A. A module doing a single, focused task
B. Using many global variables
C. Code duplication
D. Multiple responsibilities in one class
57. What does low coupling promote in software systems?
A. Unrelated classes
B. Modules depending on each other
C. Interdependent classes
D. Independent and modular classes
58. What is an example of responsibility-driven design?
A. Assigning roles to objects
B. Writing procedural code
C. Combining data and operations
D. Using recursion
59. Which design method emphasizes using real-world entities?
A. Object-based modeling
B. Logic-driven modeling
C. Responsibility-focused design
D. Entity-driven modeling
60. Which data type is used to store characters in Java?
A. char
B. character
C. string
D. text
61. What is the default value of an int variable in Java?
A. 0
B. null
C. undefined
D. 1
62. Which keyword is used to define a constant variable?
A. const
B. final
C. static
D. define
63. What is the purpose of a constructor?
A. To create methods
B. To initialize objects
C. To declare variables
D. To destroy objects
64. What is the correct syntax for a for-loop?
A. for(int i = 0; i < 10; i++)
B. loop(i = 0; i < 10; i++)
C. for i = 0 to 10
D. foreach i in range(10)
65. Which keyword is used to create an abstract class?
A. abstract
B. interface
C. static
D. final
66. How do you handle an exception in Java?
A. try-catch
B. if-else
C. loop
D. throw-error
67. What does the finally block do in exception handling?
A. It always executes
B. It handles the exception
C. It catches runtime errors
D. It rethrows the error
68. What is the parent class of all Java classes?
A. Object
B. System
C. Class
D. Exception
69. What is the output when an exception is thrown and not caught?
A. Program stops with an error
B. It continues execution
C. It skips the error
D. It returns null
70. What does PEOS stand for?
A. Personal Education Orientation Session
B. Program Education Orientation Scheme
C. Professional Education Orientation Seminar
D. Philippine Education Outline Standard
71. What is the main purpose of SOS in university orientation?
A. Student Orientation Services
B. Scholastic Organizational Setup
C. Student Operational Scheme
D. School Organizational Standard
72. Which of the following is NOT a core value of the university?
A. Integrity
B. Innovation
C. Profit
D. Excellence
73. What does the grading system use to compute the final grade?
A. Raw scores
B. Participation only
C. Attendance only
D. All of the above
74. Which of the following best describes encapsulation?
A. Wrapping data and methods into a single unit
B. Hiding data from users
C. Inheriting properties
D. Running multiple classes
75. What is the primary purpose of abstraction in OOP?
A. To hide implementation details
B. To reduce code size
C. To make code run faster
D. To compile better
76. Which concept allows objects to take many forms?
A. Encapsulation
B. Inheritance
C. Abstraction
D. Polymorphism
77. What does UML stand for?
A. Unified Modeling Language
B. Universal Method Library
C. Unified Method Logic
D. User Mode Language
78. In UML, what symbol represents inheritance?
A. Solid line with a hollow triangle
B. Dashed arrow
C. Solid arrow
D. Circle
79. What is high cohesion in OOP design?
A. A module doing a single, focused task
B. Using many global variables
C. Code duplication
D. Multiple responsibilities in one class
80. What does low coupling promote in software systems?
A. Unrelated classes
B. Modules depending on each other
C. Interdependent classes
D. Independent and modular classes
81. What is an example of responsibility-driven design?
A. Assigning roles to objects
B. Writing procedural code
C. Combining data and operations
D. Using recursion
82. Which design method emphasizes using real-world entities?
A. Object-based modeling
B. Logic-driven modeling
C. Responsibility-focused design
D. Entity-driven modeling
83. Which data type is used to store characters in Java?
A. char
B. character
C. string
D. text
84. What is the default value of an int variable in Java?
A. 0
B. null
C. undefined
D. 1
85. Which keyword is used to define a constant variable?
A. const
B. final
C. static
D. define
86. What is the purpose of a constructor?
A. To create methods
B. To initialize objects
C. To declare variables
D. To destroy objects
87. What is the correct syntax for a for-loop?
A. for(int i = 0; i < 10; i++)
B. loop(i = 0; i < 10; i++)
C. for i = 0 to 10
D. foreach i in range(10)
88. Which keyword is used to create an abstract class?
A. abstract
B. interface
C. static
D. final
89. How do you handle an exception in Java?
A. try-catch
B. if-else
C. loop
D. throw-error
90. What does the finally block do in exception handling?
A. It always executes
B. It handles the exception
C. It catches runtime errors
D. It rethrows the error
91. What is the parent class of all Java classes?
A. Object
B. System
C. Class
D. Exception
92. What is the output when an exception is thrown and not caught?
A. Program stops with an error
B. It continues execution
C. It skips the error
D. It returns null
93. What does PEOS stand for?
A. Personal Education Orientation Session
B. Program Education Orientation Scheme
C. Professional Education Orientation Seminar
D. Philippine Education Outline Standard
94. What is the main purpose of SOS in university orientation?
A. Student Orientation Services
B. Scholastic Organizational Setup
C. Student Operational Scheme
D. School Organizational Standard
95. Which of the following is NOT a core value of the university?
A. Integrity
B. Innovation
C. Profit
D. Excellence
96. What does the grading system use to compute the final grade?
A. Raw scores
B. Participation only
C. Attendance only
D. All of the above
97. Which of the following best describes encapsulation?
A. Wrapping data and methods into a single unit
B. Hiding data from users
C. Inheriting properties
D. Running multiple classes
98. What is the primary purpose of abstraction in OOP?
A. To hide implementation details
B. To reduce code size
C. To make code run faster
D. To compile better
99. Which concept allows objects to take many forms?
A. Encapsulation
B. Inheritance
C. Abstraction
D. Polymorphism
100. What does UML stand for?
A. Unified Modeling Language
B. Universal Method Library
C. Unified Method Logic
D. User Mode Language
ANSWER KEY

1. A 2. A
3. C 4. D
5. A 6. A
7. D 8. A
9. A 10. A
11. D 12. A
13. A 14. A
15. A 16. B
17. B 18. B
19. A 20. A
21. A 22. A
23. A 24. A
25. A 26. C
27. D 28. A
29. A 30. D
31. A 32. A
33. A 34. D
35. A 36. A
37. A 38. A
39. B 40. B
41. B 42. A
43. A 44. A
45. A 46. A
47. A 48. A
49. C 50. D
51. A 52. A
53. D 54. A
55. A 56. A
57. D 58. A
59. A 60. A
61. A 62. B
63. B 64. B
65. A 66. A
67. A 68. A
69. A 70. A
71. A 72. C
73. D 74. A
75. A 76. D
77. A 78. A
79. A 80. D
81. A 82. A
83. A 84. A
85. B 86. B
87. B 88. A
89. A 90. A
91. A 92. A
93. A 94. A
95. C 96. D
97. A 98. A
99. D 100. A

You might also like