¿Qué son los argumentos en una función en Python?
Preguntas sobre Python y CodeCombat 2.0

Quiz
•
Computers
•
6th - 8th Grade
•
Hard
David Moreno
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Son valores que se envían a una función para que los use.
Son comandos secretos del juego.
Son los enemigos en CodeCombat.
No tienen ninguna función en el código.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo pasamos un argumento a una función en CodeCombat?
Escribiendo el valor entre paréntesis al llamar la función.
Usando la tecla Enter.
No es necesario pasar argumentos.
Presionando un botón en el juego.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué representa self.health en CodeCombat?
La cantidad de vida del héroe.
El nivel de dificultad del juego.
La velocidad del héroe.
La cantidad de oro en el mapa.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Si una función attack(enemy) en CodeCombat recibe un argumento, ¿qué debemos enviarle?
Un número aleatorio.
El nombre de un enemigo.
Una palabra sin sentido.
Nada, porque la función se ejecuta sola.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cuál de las siguientes opciones cambia una propiedad del héroe en CodeCombat?
A) hero.speed = 10
B) hero.attack(10)
C) hero.run()
D) hero.moveRight(10)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué sucede si llamamos a una función sin pasarle los argumentos necesarios?
El héroe se mueve más rápido.
El juego se vuelve más difícil.
Aparece un error porque faltan los argumentos.
No pasa nada, la función se ejecuta igual.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo puedes obtener la cantidad de oro que tiene tu héroe en CodeCombat?
hero.speed
hero.gold
hero.attack
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Sistemas Operativos

Quiz
•
1st Grade - University
20 questions
VideoGames

Quiz
•
KG - University
20 questions
EXAMEN DE COMPUTACION 1

Quiz
•
7th - 9th Grade
20 questions
Microsoft Word

Quiz
•
6th Grade
21 questions
Partes de la PC

Quiz
•
5th - 7th Grade
16 questions
Virus y Antivirus

Quiz
•
8th Grade
19 questions
ProA Desarrollo de Software 3° año

Quiz
•
1st - 12th Grade
15 questions
Python Basics Quiz

Quiz
•
6th - 10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
20 questions
Final Exam Vocabulary

Quiz
•
6th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
49 questions
How Well Do You Know Your 6th Grade Teachers?

Quiz
•
6th Grade