Search Header Logo

Preguntas sobre Python y CodeCombat 2.0

Authored by David Moreno

Computers

6th - 8th Grade

Used 3+ times

Preguntas sobre Python y CodeCombat 2.0
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Qué son los argumentos en una función en Python?

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?