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

CSE 110 EXAM 2 2026 TEST PAPER SOLVED ITEMS ACCURATE MARKING

Puntuación
-
Vendido
-
Páginas
158
Grado
A+
Subido en
10-01-2026
Escrito en
2025/2026

CSE 110 EXAM 2 2026 TEST PAPER SOLVED ITEMS ACCURATE MARKING

Institución
CSE 110
Grado
CSE 110











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

Escuela, estudio y materia

Institución
CSE 110
Grado
CSE 110

Información del documento

Subido en
10 de enero de 2026
Número de páginas
158
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

CSE 110 EXAM 2 2026 TEST PAPER SOLVED
ITEMS ACCURATE MARKING

◉ What are the values of i and j after the following code fragment
runs?


int i = 60;
int j = 50;
int count = 0;
while (count < 5)
{
i = i + i;
i = i + 1;
j = j - 1;
j = j - j;
count++;
}
System.out.println("i=" + i + ", j=" + j);


a) i = 1951, j = 0
b) i = 1951, j = 45

,c) i = 65, j = 1
d) i = 65, j = 45. Answer: Answer: a) i = 1951, j = 0


◉ 9) Which error type does the "off-by-one" error belong to?


a) Syntax error
b) Compile-time error
c) Run-time error
d) Infinite loop. Answer: Answer: c) Run-time error


◉ 10) How many times does the following code fragment display
"Hi"?


int i = 10;
while (i >= 0)
{
System.out.println("Hi");
i--;
}


a) 9 times
b) 10 times

,c) 11 times
d) 12 times. Answer: Answer: c) 11 times


◉ 11) What is the output of the following code fragment?


int i = 1;
int sum = 0;
while (i <= 11)
{
sum = sum + i;
i++;
}
System.out.println("The value of sum is " + sum);


a) The value of sum is 65
b) The value of sum is 66
c) The value of sum is 55
d) The value of sum is 56. Answer: Answer: b) The value of sum is 66


◉ 12) How many times does the loop execute in the following code
fragment?

, int i;
for (i = 0; i < 50; i = i + 4)
{
System.out.println(i);
}


a) 11
b) 12
c) 13
d) 14. Answer: Answer: c) 13


◉ 13) How many times does the following code snippet display
"Loop Execution"?


for (int i = 0; i < 10; i++);
{
System.out.println("Loop Execution");
}


a) Ten times.
b) The code snippet does not run because of a compile error.
c) Infinite loop.
$12.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.
FocusFile7 Harvard University
Ver perfil
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
44
Miembro desde
7 meses
Número de seguidores
2
Documentos
21560
Última venta
2 días hace
FocusFile7

Welcome to FocusFile, your inspiring hub for academic excellence! Just like your favorite café where every sip brings comfort, FocusFile is designed to be your go-to space for clear thinking, deep focus, and study success. Here at FocusFile, I believe learning isn’t just about cramming it’s about clarity, growth, and building the confidence to conquer any challenge. That’s why you’ll find a handpicked collection of top-notch, easy-to-digest study materials, smart summaries, and guides tailored to a wide range of subjects and learning styles. Whether you're gearing up for exams, brushing up on class notes, or just need that extra push, FocusFile has you covered. From quick-reference sheets to deep-dive notes, there’s something here for every learner whether you're a visual thinker, a bullet-point lover, or someone who thrives on quick, impactful insights. Think of FocusFile as your academic sanctuary, a place where productivity meets peace of mind. So grab your favorite drink, settle in, and let’s sharpen your focus and fuel your success, one file at a time. Thanks for making FocusFile your study partner. Let’s unlock your full potential together!

Lee mas Leer menos
4.3

4 reseñas

5
2
4
1
3
1
2
0
1
0

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