100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

IS 128 Object Oriented Programming I (HU) Midterms Exam Review 2025 (Qns & Ans).

Beoordeling
-
Verkocht
-
Pagina's
32
Geüpload op
13-03-2025
Geschreven in
2024/2025

IS 128 Object Oriented Programming I (HU) Midterms Exam Review 2025 (Qns & Ans).IS 128 Object Oriented Programming I (HU) Midterms Exam Review 2025 (Qns & Ans).IS 128 Object Oriented Programming I (HU) Midterms Exam Review 2025 (Qns & Ans).

Meer zien Lees minder
Instelling
Vak











Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
13 maart 2025
Aantal pagina's
32
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Onbekend

Onderwerpen

Voorbeeld van de inhoud

IS 128

Object-Oriented Programming I

Midterms Exam Review (Qns & Ans)

2025



1. Which of the following is a key benefit of encapsulation in
object-oriented programming?
A. Allows direct access to class fields
B. Hides implementation details and protects object state
C. Improves data storage efficiency
D. Enables the creation of abstract classes
- ANS: B. Hides implementation details and protects object
state
- Rationale: Encapsulation restricts direct access to object
fields, ensuring controlled interaction through methods.

©2025

,2. What is the primary purpose of polymorphism in OOP?
A. To reduce memory consumption
B. To allow a single interface to represent different data types or
classes
C. To simplify debugging processes
D. To store objects in arrays
- ANS: B. To allow a single interface to represent different
data types or classes
- Rationale: Polymorphism enables code flexibility by
allowing a single method or interface to work with different types
of objects.


3. In object-oriented programming, what is the term for creating
a new class based on an existing class?
A. Encapsulation
B. Composition
C. Inheritance
D. Abstraction
- ANS: C. Inheritance
- Rationale: Inheritance allows a new class (child) to acquire
properties and behaviors of an existing class (parent).

©2025

,4. Which of the following defines an abstract class?
A. A class with only static methods
B. A class that cannot be instantiated and includes at least one
abstract method
C. A class with private fields only
D. A class that implements an interface
- ANS: B. A class that cannot be instantiated and includes at
least one abstract method
- Rationale: Abstract classes serve as blueprints for other
classes and cannot be instantiated directly.


5. What does the "this" keyword refer to in object-oriented
programming?
A. The parent class
B. The current instance of the class
C. A static class variable
D. An unrelated object
- ANS: B. The current instance of the class
- Rationale: The "this" keyword is used to refer to the current
object within a method or constructor.


©2025

, ---


Fill-in-the-Blank Questions
6. __________ is the principle that allows a derived class to
override a method in its base class with a new implementation.
- ANS: Method Overriding
- Rationale: Method overriding occurs when a subclass
provides its own implementation for a method defined in its
parent class.


7. In OOP, __________ is a design pattern that ensures a class
has only one instance and provides a global access point to it.
- ANS: Singleton
- Rationale: The Singleton pattern restricts a class to a single
instance, often used in resource management.


8. The __________ relationship in object-oriented programming
is characterized by "is-a" hierarchy, such as a car being a type of
vehicle.
- ANS: Inheritance
- Rationale: The "is-a" relationship defines inheritance,
where a subclass inherits properties and behaviors from a
superclass.


©2025

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Examiner651 Freelance
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
19
Lid sinds
3 jaar
Aantal volgers
5
Documenten
3731
Laatst verkocht
1 week geleden

5,0

2 beoordelingen

5
2
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen