
EXAMEN NOVENO BUCLES
Quiz
•
Others
•
9th - 12th Grade
•
Practice Problem
•
Hard
SEBASTIAN CASTRO
Used 2+ times
FREE Resource
Enhance your content in a minute
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.
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.
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:
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
Already have an account?
Similar Resources on Wayground
15 questions
grammar unit 6
Quiz
•
9th - 12th Grade
10 questions
nihon go (pengetahuan umum+hiragana a-t)
Quiz
•
10th Grade
15 questions
Test Your Knowledge
Quiz
•
12th Grade
10 questions
Games 1 (Bilangan bulat)
Quiz
•
9th - 12th Grade
10 questions
Grammar Quiz
Quiz
•
9th - 12th Grade
15 questions
UH Permanganometri
Quiz
•
11th Grade
12 questions
Podatki i ubezpieczenia w działalności spedycyjnej i transp.
Quiz
•
9th - 12th Grade
10 questions
Średniowiecze - powtórzenie
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Others
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
20 questions
Pythagorean Theorem and Their Converse
Quiz
•
8th - 9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Thanksgiving Trivia Challenge: Test Your Knowledge!
Interactive video
•
6th - 10th Grade
