
EXAMEN NOVENO BUCLES
Quiz
•
Others
•
9th - 12th Grade
•
Hard
SEBASTIAN CASTRO
Used 2+ times
FREE Resource
Enhance your content
11 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Pide 6 notas (0–5) y cuenta cuántas son ≥ 3.0.
let aprobados = 0;
for (let i = 1; i <= 6; i++) {
let n = parseFloat(prompt("Nota " + i + ":"));
if (n >= 3) { ________; }
}
alert("Aprobados: " + aprobados);
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Lee ventas hasta ingresar 0. Cuenta cuántas superan 200000.
let c = 0;
let v = parseFloat(prompt("Venta (0 para terminar):"));
while (v !== 0) {
if (v > 200000) { c++; }
v = ________(prompt("Venta (0 para terminar):"));
}
alert("Destacadas: " + c);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Para sumar solo valores positivos de 10 entradas:
if (v >= 0) total += v;
if (v > 0) total += v;
if (v >= 0) total = v;
if (v >= 10) total = v;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Un cine quiere calcular cuántas entradas con descuento se venden en un día. El descuento aplica solo a clientes menores de 12 años o mayores de 60. El programa debe recibir la edad de cada cliente (5 en total) y contar cuántos obtienen descuento. ¿Qué condición usarías dentro del bucle for?
if (edad <= 12 || edad >= 60)
if (edad < 12 && edad > 60)
if (edad < 12 || edad > 60)
if (edad >= 12 && edad <= 60)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Una tienda procesa las compras de 8 clientes y quiere saber el total vendido. Solo sumará compras de más de $50.000. ¿Qué instrucción es correcta dentro de un while?
if (compra >= 50000) { total += compra; }
if (compra > 50000) { total = compra; }
if (compra >= 50000) { total =+ compra; }
if (compra > 50000) { total += compra; }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Un colegio realiza un bucle do while para registrar calificaciones. Si una nota es menor a 3.0, se considera reprobada y se cuenta. ¿Qué variable debería aumentar en el if?
A) contador_aprobados++
contador_aprobados++
contador_reprobados++
nota++
total_notas++
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál es el resultado de este código?
for (let i = 1; i <= 3; i++) {
if (i % 2 === 0) {
console.log(i * 2);
}
}
2, 4, 6
4
2, 6
4, 6
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Solutions
Quiz
•
12th Grade
11 questions
Compare/Contrast Day 9
Quiz
•
1st Grade - University
15 questions
PAMSI
Quiz
•
9th - 12th Grade
16 questions
Bài 7 - Trắc nghiệm nhiều phương án lựa chọn
Quiz
•
12th Grade
15 questions
NOVA OPORTUNIDADE III BIMESTRE 2 ANO
Quiz
•
12th Grade
13 questions
Past Simple
Quiz
•
12th Grade
10 questions
untitled
Quiz
•
12th Grade - University
10 questions
EXERCISE 2 FLOWER CLASS
Quiz
•
11th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Others
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
17 questions
Afro Latinos: Una Historia Breve Examen
Quiz
•
9th - 12th Grade
13 questions
Halloween Trivia
Quiz
•
9th Grade
17 questions
Hispanic Heritage Month Trivia
Quiz
•
9th - 12th Grade
12 questions
Graphing Inequalities on a Number Line
Quiz
•
9th Grade