• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 6 páginas
Examen

CS280 Final Exam Study Guide With Complete Solutions

Document preview thumbnail
Vista previa 2 fuera de 6 páginas

CS280 Final Exam Study Guide With Complete Solutions...

Vista previa del contenido

CS280 Final Exam Study Guide With
Complete Solutions

In C++ and Java, it is possible to create an infinite loop out of while and do loops
but not for loops. - ANSWER False

The function header void SomeFunc(char arr[]); can be interchangeable with the
heading void SomeFunc(char* arr); - ANSWER True

The binding of actual parameters to formal parameters in C/C++ is by position. -
ANSWER True

The Environment Pointer (EP) is a variable maintained by the run-time system. It
always points at the base of the activation record instance of the currently
executing program unit. - ANSWER True

C++ supports multiple inheritance, but Java directly supports only single
inheritance. - ANSWER True

C++ provides two constructs, the class and the struct, which support directly
abstract data types - ANSWER True

The type of the reference, not the type of the object, is used to determine which
version of a method is invoked in a polymorphic reference. - ANSWER False

A C++ class that has at least one virtual function is an abstract class. - ANSWER
False

A switch statement in C++ or Java must have a default clause. - ANSWER False

In Java, all objects are allocated from the heap and accessed through reference
variables. - ANSWER True

What are the values of x, y and z after the execution of the following statements?
int x = 3;
int y = ++x; int z = x++;

a. x = 4, y = 4, z = 3
b. x = 5, y = 4, z = 4
c. x = 4, y = 3, z = 3
d. x = 5, y = 3, z = 4 - ANSWER B

, Consider the following C++ program, what is the output generated in the main
function, assuming operands are evaluated left to right in the statement at
position 1?
int fun (int x, int &y)
{
++x; y++; return x;
}
int main()
{
int k = 3, j = 11;
do {
j = j - fun(k, j);//position 1
cout << k <<", "<< j << ", ";
} while(++k < 5);
return 0;
}

a. 3, 7, 4, 2,
b. 4, 7, 5, 2
c. 3, 7, 5, 2
d. 4, 8, 5, 4 - ANSWER A

LOOK AT 3 - ANSWER A

What will be the value of x after the following statements are executed? int x =
12; switch (x) { case 10: x += 15; break; case 12: x -= 5; default: x *= 3; }

a. 15
b. 21
c. 27
d. 7 - ANSWER B

Individual entities in Java classes have access control modifiers, called visibility
modifiers, that are attached to method and variable definitions. These include:

a. public, private
b. public, private, protected
c. public, private, protected, final
d. public, private, protected, static - ANSWER B

A continue statement in C/C++ and Java

a. may be used within a while or a do-while loop but not a for loop
b. is identical to a break statement within loops
c. may be used within any loop statement

Información del documento

Subido en
9 de abril de 2026
Número de páginas
6
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$14.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

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.
Zayla
3.2
(20)
Vendido
163
Seguidores
13
Artículos
18660
Última venta
1 semana hace



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