• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 121 pages
Exam (elaborations)

Thompson Rivers University COMP1230: Computer Programming II – Final Exam (150+ Questions with Rationales)

Document preview thumbnail
Preview 4 out of 121 pages

Key Topics Covered on the Final Exam: Object-Oriented Programming (OOP) Principles (Encapsulation, Inheritance, Polymorphism, Abstraction) Classes, Objects, and Methods Constructors, Overloading, and Overriding Inheritance and Interfaces Abstract Classes and Polymorphism Exception Handling File I/O (Input/Output) Collections Framework (ArrayList, LinkedList, HashMap, etc.) Generics Recursion Searching and Sorting Algorithms (Linear Search, Binary Search, Selection Sort, Insertion Sort, Merge Sort, Quick Sort) UML Class Diagrams Software Design Principles (SOLID) Unit Testing and Debugging

Content preview

Thompson Rivers University COMP1230
Computer Programming II – Final Exam
(150+ Questions And Answers with
Rationales)

COURSE OVERVIEW
COMP1230 Computer Programming II is a
continuation of COMP1130 and provides a foundation
for further studies in computing science. The
objectives are to introduce object-oriented
programming and continue to develop a disciplined
approach to the design, coding, and testing of
programs. This course typically uses Java and covers
advanced programming concepts beyond the
introductory level.
Key Topics Covered on the Final Exam:
• Object-Oriented Programming (OOP) Principles
(Encapsulation, Inheritance, Polymorphism,
Abstraction)

,• Classes, Objects, and Methods
• Constructors, Overloading, and Overriding
• Inheritance and Interfaces
• Abstract Classes and Polymorphism
• Exception Handling
• File I/O (Input/Output)
• Collections Framework (ArrayList, LinkedList,
HashMap, etc.)
• Generics
• Recursion
• Searching and Sorting Algorithms (Linear Search,
Binary Search, Selection Sort, Insertion Sort,
Merge Sort, Quick Sort)
• UML Class Diagrams
• Software Design Principles (SOLID)
• Unit Testing and Debugging

,PART 1: OBJECT-ORIENTED PROGRAMMING (OOP)
FUNDAMENTALS (Questions 1-30)
Question 1
What are the four main principles of Object-Oriented
Programming (OOP)?
• A) Encapsulation, Inheritance, Polymorphism,
Abstraction
• B) Encapsulation, Inheritance, Polymorphism,
Association
• C) Encapsulation, Inheritance, Polymorphism,
Modularity
• D) Encapsulation, Inheritance, Polymorphism,
Reusability
• Answer: A
• Rationale: The four pillars of OOP are
Encapsulation (bundling data and methods),
Inheritance (creating class hierarchies),
Polymorphism (objects taking many forms), and
Abstraction (hiding complex implementation
details).

, Question 2
What is encapsulation?
• A) The ability of a class to inherit from another
class
• B) The bundling of data and methods that operate
on that data within a class, hiding internal state
• C) The ability of an object to take many forms
• D) The process of creating new classes
• Answer: B
• Rationale: Encapsulation is a fundamental OOP
principle where data (attributes) and methods are
bundled within a class, and the internal state is
hidden from outside access, typically using access
modifiers like private.


Question 3
What is inheritance?

Document information

Uploaded on
July 3, 2026
Number of pages
121
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$15.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
MREXAMS
2.5
(4)
Sold
25
Followers
1
Items
979
Last sold
3 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions