
Preguntas de Programación RPG
Quiz
•
Information Technology (IT)
•
5th Grade
•
Practice Problem
•
Hard
Valentina Baldoni
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¡Hola, aventurero! Imagina que eres Ava, y has encontrado una misteriosa 'Poción de Salud' en tu viaje. ¿Cómo la agregarías a tu inventario mágico?
inventario.add("Poción de Salud")
inventario.push("Poción de Salud")
inventario = "Poción de Salud"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¡Hola, aventureros! Imaginemos que Arjun y Sophia están en una batalla épica. ¿Qué función mágica calculará el daño de un ataque si el daño base es 10 y la fuerza de Samuel es 5?
function calcularDaño() { return 10 * 5 }
calcularDaño = 10 + 5
if (daño === 10) { return 5 }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¡Hola, aventureros! Si Aria, Priya y Mia están buscando todas las 'Espadas' en su inventario mágico, ¿qué método usarían para encontrarlas?
inventario.filter(ítem => ítem.tipo === "espada")
inventario.find("espada")
inventario.map(ítem => "espada")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¡Hola, programadores! ¿Qué bucle usarían Ava, Anika o Zoe para imprimir cada ítem del inventario? ¡Elijan sabiamente!
for (let i = 0; i < inventario.length; i++) { console.log(inventario[i]) }
while (inventario) { console.log(inventario) }
inventario.loop(ítem => alert(ítem))
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¡Hola, aventureros! Imagina que nuestro amigo James está luchando contra un dragón y necesita saber si su salud es mayor a 50 para seguir peleando. ¿Cuál de las siguientes condiciones debería usar para verificarlo?
if (salud > 50) { ... }
if (salud === 50) { ... }
if (salud !== "bajo") { ... }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¡Hola, estudiantes! Grace, Daniel y Abigail están trabajando en un proyecto y necesitan transformar un array de daños [5, 3, 8] a sus valores dobles. ¿Cuál de las siguientes opciones es la correcta para lograrlo?
daños.map(d => d * 2)
daños.filter(d => d * 2)
daños.push(5*2, 3*2, 8*2)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¡Hola, aventureros! Imagina que Aiden, Arjun y Abigail están en una búsqueda del tesoro y han encontrado un cofre con 10, 20 y 30 piezas de oro. ¿Qué hace la mágica función reduce() en este código? const oroTotal = [10, 20, 30].reduce((total, oro) => total + oro, 0);
¡Suma todo el oro y encuentra un total de 60 piezas!
Filtra el oro mayor a 20 para ver quién se queda con más.
Convierte el array a texto para contar la historia del tesoro.
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?
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
20 questions
Making Inferences
Quiz
•
5th Grade
10 questions
Exploring Europe: Geography, History, and Culture
Interactive video
•
5th - 8th Grade
10 questions
Simplifying Fractions
Quiz
•
5th Grade
10 questions
Charlie Brown's Thanksgiving Adventures
Interactive video
•
2nd - 5th Grade
