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

CSCI 121 FINAL EXAM QUESTIONS & ANSWERS

Puntuación
-
Vendido
-
Páginas
14
Grado
A+
Subido en
05-08-2025
Escrito en
2025/2026

Which of the following is a correct way to print out "Hello World!" on the screen and the cursor goes to the new line after the printing finished. a. cout >> "Hello, World!n" ; b. cout << "Hello, World!/n" ; c. cout >> "Hello, World!" << endl ; d. cout << "Hello, World!" << endl; - Answer -d Which of the following is correct? a. #include < iostream> b. #include <iostream> c. #include <iostream > d. All of a, b, and c *pg. 26 - Answer -b What will be the output of the following code? Assume that originally int type variable x = 6 if(x % 3 == 0) cout << x << " is a multiple of 3 " << endl; else cout << x << " is not a multiple of 3 " << endl; a. 6 is a multiple of 3 b. 6 is not a multiple of 3 c. x is a multiple of 3 d. x is not a multiple of 3 e. There is a syntax error - Answer -a How many numbers will the following code print out? Assume int x = 6; before the loop. do { cout << x << endl; x--; } while (x > 6); a. one

Mostrar más Leer menos
Institución
CSCI 121
Grado
CSCI 121









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

Escuela, estudio y materia

Institución
CSCI 121
Grado
CSCI 121

Información del documento

Subido en
5 de agosto de 2025
Número de páginas
14
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

CSCI 121 FINAL EXAM QUESTIONS & ANSWERS

Which of the following is an input device for a computer?
a. CPU
b. Monitor
c. Mouse
d. Printer
e. Memory - Answer -c

Which of the following is a correct way to print out "Hello World!" on the screen and the
cursor
goes to the new line after the printing finished.
a. cout >> "Hello, World!\n" ;
b. cout << "Hello, World!/n" ;
c. cout >> "Hello, World!" << endl ;
d. cout << "Hello, World!" << endl; - Answer -d

Which of the following is correct?
a. #include < iostream>
b. #include <iostream>
c. #include <iostream >
d. All of a, b, and c

*pg. 26 - Answer -b

What will be the output of the following code? Assume that originally int type variable x
=6
if(x % 3 == 0)
cout << x << " is a multiple of 3 " << endl;
else
cout << x << " is not a multiple of 3 " << endl;
a. 6 is a multiple of 3
b. 6 is not a multiple of 3
c. x is a multiple of 3
d. x is not a multiple of 3
e. There is a syntax error - Answer -a

How many numbers will the following code print out?
Assume int x = 6; before the loop.
do {
cout << x << endl;
x--;
} while (x > 6);

a. one

, b. six
c. zero
d. infinite
e. There is a syntax error - Answer -a

Which of the following declares a constant variable named TAX_RATE with type double
and
initialize it to 0.085?
a. constant double x = 0.085.
b. const double x = 0.085.
c. const double x = 0.085;
d. constant double x = 0.085;

pg. 97 - Answer -c

What is the value of sum after the execution of the following loop?
int sum = 0;
int n = 5;
while(n > 0) {
sum += n;
n = n - 1;
}
a. 15
b. 14
c. infinite
d. There is a syntax error. - Answer -a

Evaluate the following Boolean expression: true || false && true
a. true || false && true = true || (false && true) = true || false = true
b. true || false && true = (true || false) && true = true && true = true
c. false
d. It cannot be determined. You need add parenthesis.

pg. 114 - Answer -a

Suppose int x = 5; what is the output of the following statement?
if( x > 10)
cout << "Hello";
else if (x > 6)
cout << "World";
else
cout << "Hi";
a. Hello
b. World
c. HelloWorld
d. Hi
$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.
GEEKA YALA UNIVERSITY
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
2009
Miembro desde
3 año
Número de seguidores
1447
Documentos
48302
Última venta
11 horas hace

3.8

344 reseñas

5
171
4
61
3
44
2
16
1
52

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