
Examen de Programación

Quiz
•
Other
•
University
•
Easy
Patszz Olivares
Used 1+ times
FREE Resource
29 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es la salida del siguiente código en C++? int x = 10; int y = 3; printf("%d", x % y);
1
3
0
Error de compilación
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué sucede al ejecutar el siguiente código en Python? def divide(a, b): return a / b print(divide(5, 0))
0
None
Error de división entre cero
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es el error en este código en C++? int main() { int a = 5; if a > 3 { cout << "OK"; }
Falta el punto y coma
Condición mal formada
Falta #include
Todas las anteriores
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué imprime el siguiente código en Python? x = [1, 2, 3] print(x[3])
3
Error: índice fuera de rango
[3]
0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué hace este código en C++? int x = 5; int y = 2; double z = x / y; printf("%f", z);
Imprime 2.5
Imprime 2.000000
Imprime 2.0000000 con warning
Error en la conversión de tipo
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es la estructura más adecuada para leer 10 datos en C++?
if
switch
for
do-while
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué hace este fragmento en Python? for i in range(1, 5): if i % 2 == 0: print(i, end=' ')
1 2 3 4
2 4
1 3
Error de sintaxis
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Primer corte Mercadeo Básico

Quiz
•
University
24 questions
Java MCQs on Threads and Exceptions

Quiz
•
University
25 questions
UNIDAD 1 (repaso) - A1

Quiz
•
1st Grade - University
24 questions
Thinking Design

Quiz
•
University
25 questions
Fundamentos del diseño

Quiz
•
University
24 questions
Estenosis Pilórica 2

Quiz
•
University
25 questions
Diseño de investigación

Quiz
•
University
25 questions
Con trỏ

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University