Crear
Descargar
Obtener Plan Académico
Compartir juego
Froggy Jumps
Froggy Jumps

Chapter 4: Functions..

Intégralo en tu plataforma

Puedes integrar el juego en un LMS compatible con LTI 1.1 o LTI 1.3 como Canvas, Moodle, o Blackboard. De esta manera podrás guardar las puntuaciones automáticamente en el libro de calificaciones de esa plataforma.
Descargar
Has superado el número máximo de juegos que puedes integrar en Google Classroom con tu Plan actual.

Para integrar tantos juegos como quieras en Google Classroom, necesitas un Plan Académico o un Plan Comercial.

Has superado el número máximo de juegos que puedes integrar en Microsoft Teams con tu Plan actual.

Para integrar tantos juegos como quieras en Microsoft Teams, necesitas un Plan Académico o un Plan Comercial.

La descarga de juegos es una característica exclusiva para usuarios con un Plan Académico o un Plan Comercial.

Obtén ahora tu Plan Académico o Comercial y comienza a integrar tus juegos en tu LMS, web o blog.

Si lo deseas, puedes descargar un juego de prueba aquí y probar su integración:

Chapter 4: Functions..

Froggy Jumps

Jugadas 29 %Acierto 62 Tiempo medio 17:06

Sobre esta actividad

Test your function basics

Creada por

Vietnam

Descarga la versión para jugar en papel

Crea tu propio juego gratis desde nuestro creador de juegos
Compite contra tus amigos para ver quien consigue la mejor puntuación en esta actividad

Top juegos

%
Anónimo
Anónimo
%
%
%
Has superado el número máximo de juegos que puedes imprimir con tu Plan actual.

Para imprimir tantos juegos como quieras, necesitas un Plan Académico o un Plan Comercial.

Imprime tu juego
Chapter 4: Functions..
 

Froggy Jumps

Chapter 4: Functions..Versión en línea

Test your function basics

por Hoh Trang
1

What is the formal definition of a "function" in Python?

2

Which keyword is used to begin a function definition?

3

What is the output of the following code? def func(a, b): return str(a) + b print(func(10, "5"))

4

What is a "parameter"?

5

What is the result of the expression max('Hello world')?

6

What is the result of the expression min('Hello world')?

7

Which built-in function returns the number of items in its argument (e.g., characters in a string)?

8

If you call int(3.99999), what value is returned?

9

Which function converts an integer or float into a string?

10

To use the sin() or sqrt() functions, which module must you first provide to Python?

11

What is "dot notation" in Python?

12

Approximately how many digits of accuracy does the constant math.pi provide?

13

What value does the random.random() function return?

14

Which function returns a random integer between a specific range, including both endpoints?

15

What is the purpose of the random.choice() function?

16

What are the rules for naming a function?

17

What character must follow the function name and parentheses in a def statement?

18

What is the standard indentation for the "body" of a function in Python?

19

Does defining a function cause the code inside it to run immediately?

20

What is "composition" in programming?

21

What is the output of the following code? def say_hi(): return "Hello" result = say_hi() print(result + "!")

22

What is a "fruitful function"?

23

What is a "void function"?

24

If you assign the result of a void function (like print_twice) to a variable, what value will that variable hold?

25

What is the data type of the special value None?

26

Which statement is used to end a function's execution and send a result back?

27

What is one primary reason to use functions to organize code?

28

What value is stored in the variable val? def calculate(n): res = n * 2 val = calculate(10)

29

What happens if you try to call a function before it has been defined in your script?

30

What is the output of the following code snippet? def computepay(hours, rate): return hours * rate pay = computepay(10, 20) print(pay + 50)

31

What does this program print? def total(x, y): return x + y x = 5 total(10, 10) print(x)

¿Seguro que quieres abandonar la página?

Si sales, perderás la partida en curso.