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

CS 151 FINAL EXAM QUESTIONS AND ANSWERS. VERIFIED 2025/2026.

Puntuación
-
Vendido
-
Páginas
24
Grado
A+
Subido en
07-12-2025
Escrito en
2025/2026

CS 151 FINAL EXAM QUESTIONS AND ANSWERS. VERIFIED 2025/2026.

Institución
CS 151
Grado
CS 151










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

Escuela, estudio y materia

Institución
CS 151
Grado
CS 151

Información del documento

Subido en
7 de diciembre de 2025
Número de páginas
24
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

CS 151 FINAL EXAM QUESTIONS AND
ANSWERS. VERIFIED 2025/2026.




TF Instance variables and methods are called "class members". - ANS True



TF An "object" is the instance of its class - ANS True



Pick all true statements in OOP and Java:

1)"Method" in Java is equivalent to "attribute" in OOP.

2)"Method" in Java is equivalent to "behavior" in OOP.

3)"Instance variable" in Java is equivalent to "behavior" in OOP.

4)"Instance variable" in Java is equivalent to "attribute" in OOP. - ANS 2, 4



Pick all true statements in OOP.

1. We model the behavior of the real universe's entities with "Java Methods".

2. We model the behavior of the real universe's entities with "Java instance variables".

3. "Identity" of an object is the name we give to it.

4. We model the real universe's entities by "objects". - ANS 1,4



Definition of a class in OOP - ANS A class is an abstraction of similar objects.


1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.

,Definition of a paradigm - ANS A paradigm is a way of representing an entity and its
interactions from the real world in the cyberspace.



Names of the 4 major paradigms in CS - ANS Procedural, Functional, OOP, and Logical



Definition of the state of an object - ANS Is the set of the values of the attributes at any
moment.



TF Dependency is a symmetric relationship. - ANS False



TF Software Development is a linear progression through some phases. - ANS False



TF The criteria for testing an application is its technical spec. - ANS False



TF The artifact of the design phase is called the functional spec. - ANS False



Pick all true statements about the problem statement:

1. It describes what the problem is

2. None is correct.

3. Theoretically, it is a clear description of the problem.

4. It is usually written by the client. - ANS 1,3,4



What is the multiplicity between the following classes in the given code?

A) CourseSection -- Instructor

B) CourseSection -- Student



2 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.

, public class CourseSection{

private List<Student> students;

private Instructor instructor;

//....

} - ANS A)1:1

B)1:*



ClassA aggregatres ClassB if... - ANS ClassA contains ClassB in its instance variables.



Pick all true statements about "classes relationship":

1. Aggregation is a special case of dependency

2. Dependency is a special case of aggregation

3. ClassA is dependent on ClassB if ClassA uses ClassB

4. Dependency and composition are totally different. - ANS 1,3



A) What does API stand for?

B) What is its definition? - ANS A) Application Programming Interface

B) Whatever a class (or library) exposes to the outside world. (Or can be seen by other classes).



What is the difference between aggregation and composition? - ANS Aggregation occurs
when ClassA uses ClassB in its instance variables. Composition occurs when ClassA uses ClassB
in its instance variables AND ClassB cannot exist independently outside of classA.



Give one reason for why we should minimize the dependency between classes? - ANS It
makes your code easier to maintain. Since classes are less dependent on one another, if you
change one class, a different class will not need to be changed since it is not concerned about
the changes made to the initial class.

3 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.

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.
Brainbarter Kaplan University
Ver perfil
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
325
Miembro desde
2 año
Número de seguidores
153
Documentos
22254
Última venta
5 días hace
A+ STUDY MATERIALS.

We offer a wide range of high-quality study materials, including study guides practice exams and flashcards. WELCOME.

3.5

54 reseñas

5
21
4
8
3
12
2
4
1
9

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