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 EXAM QUESTIONS AND ANSWERS. VERIFIED 2025/2026.

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

CS 151 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
12
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

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




The criteria for testing an app is its functional spec - ANS True



Superclass and subclass can declare attributes with the same name but thats a bad idea -
ANS True



Architectural design patterns are the second level of abstraction - ANS False



In Java Exception hierarchy, the subclasses of "Throwable" class are "Exception" and "Error:
classes - ANS True



Pick all that we get from obeying "Open-Closed Principle"



A) More efficient application

B) Decreasing the cost of app's maintenance

C) Higher possibility to cope with change and complexity

D) Increasing the complexity of the code - ANS B, C



What do we learn from "Interface Segregation Principle (ISP)" ?


1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.

, A) the role of segregation in inheritance

B) some inheritances are not polymorphic

C) the role of precondition in inheritance

D) interfaces should not be too big - ANS D



Class B inherits from class A, and both define their own preconditions.

If we want to use them in a polymorphic relationship, which of the following is correct?



A) Preconditions of class A must be either stronger than or equal to the preconditions of class B.

B) Preconditions of class A must be either weaker than or equal to the preconditions of class B.

C) Preconditions of class A must be equal to preconditions of class B.

D) Preconditions of class A must be weaker than preconditions of class B. - ANS A



Pick all true statements about "Singleton design pattern".



A) Only one instance of the class can exist.

B) It decreases dependency between classes.

C) None is correct.

D) This is a "creational" design pattern. - ANS A, D



What do we learn from "Liskov Substitution Principle (LSP)" ?



A) Interfaces should not be too big.

B) We should pick preconditions and postconditions carefully if we want to use an inheritance in
a polymorphic relationship.

2 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.
$12.49
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


Documento también disponible en un lote

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
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

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