100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

CS217 Object Oriented Prog Midterm Exam Review 2025 (With Solns

Puntuación
-
Vendido
-
Páginas
34
Subido en
08-04-2025
Escrito en
2024/2025

CS217 Object Oriented Prog Midterm Exam Review 2025 (With SolnsCS217 Object Oriented Prog Midterm Exam Review 2025 (With SolnsCS217 Object Oriented Prog Midterm Exam Review 2025 (With Solns

Institución
Grado











Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Grado

Información del documento

Subido en
8 de abril de 2025
Número de páginas
34
Escrito en
2024/2025
Tipo
Examen
Contiene
Desconocido

Temas

Vista previa del contenido

CS217 Object Oriented Programming

Midterm Exam Review (Qns & Ans)

2025



1. Which principle of Object-Oriented Programming ensures that
an object’s internal details are hidden from external access?
A. Polymorphism
B. Inheritance
C. Encapsulation
D. Abstraction
ANS: C. Encapsulation
Rationale: Encapsulation restricts access to an object’s internal
state, exposing only necessary functionality.


2. Which of the following describes polymorphism in OOP?

©2025

, A. Reusing code in derived classes
B. Implementing multiple methods with the same name but
different behaviors
C. Restricting object instantiation to a single instance
D. Combining multiple classes into a single object
ANS: B. Implementing multiple methods with the same
name but different behaviors
Rationale: Polymorphism enables code flexibility by allowing
a method to adapt its behavior based on its context.


3. In OOP, what is the purpose of an abstract class?
A. Creating objects directly
B. Preventing inheritance
C. Providing a base class with incomplete functionality for
subclasses to implement
D. Eliminating redundant methods
ANS: C. Providing a base class with incomplete functionality
for subclasses to implement
Rationale: Abstract classes act as templates for derived classes,
specifying methods without complete implementations.


4. Which of the following is an example of multiple inheritance?

©2025

, A. A subclass inheriting from a single parent class
B. A class inheriting properties and methods from more than
one parent class
C. An object containing multiple data attributes
D. A superclass overriding its subclass’s methods
ANS: B. A class inheriting properties and methods from
more than one parent class
Rationale: Multiple inheritance allows a class to derive
functionality from multiple parent classes.


5. What does the term "method overriding" refer to in OOP?
A. Replacing a method in a parent class with a new
implementation in a subclass
B. Defining two methods with identical signatures in the same
class
C. Hiding private methods from external access
D. Assigning default values to method arguments
ANS: A. Replacing a method in a parent class with a new
implementation in a subclass
Rationale: Method overriding enables subclass-specific
behavior by redefining a parent class method.


---
©2025

, Fill-in-the-Blank Questions
6. In object-oriented programming, ________ refers to
combining multiple data attributes and methods into a single
entity.
ANS: Class
Rationale: Classes group related attributes and methods into
one logical structure.


7. The keyword ________ is used in many OOP languages to
create an instance of a class.
ANS: new
Rationale: The `new` keyword is commonly used to instantiate
objects in languages like Java and C++.


8. The process of defining methods in a subclass with the same
name as those in the parent class is known as ________.
ANS: Overriding
Rationale: Overriding allows subclasses to provide specific
implementations for inherited methods.


9. A ________ is a special type of method used to initialize
objects of a class.

©2025
$14.99
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
ClementeO Walden University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
128
Miembro desde
3 año
Número de seguidores
43
Documentos
5013
Última venta
2 semanas hace

3.7

16 reseñas

5
9
4
0
3
3
2
1
1
3

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes