Créer jeu
Télécharger
Obtenir Plan Académique
Partager le jeu
Froggy Jumps
Froggy Jumps

Chapter 4: Functions..

Intégrez-le à votre plateforme

Vous pouvez intégrer le jeu dans un LMS compatible avec LTI 1.1 ou LTI 1.3 comme Canvas, Moodle ou Blackboard. Les scores seront ainsi automatiquement enregistrés dans le carnet de notes de la plateforme.
Télécharger
Vous avez dépassé le nombre maximum de jeux que vous pouvez intégrer à Google Classroom avec votre Plan actuel.

Pour intégrer autant de jeux que vous le souhaitez dans Google Classroom, vous avez besoin d’un Plan Académique ou un Plan Commerciel.

Vous avez dépassé le nombre maximum de jeux que vous pouvez intégrer à Microsoft Teams avec votre Plan actuel.

Pour intégrer autant de jeux que vous le souhaitez dans Microsoft Teams, vous avez besoin d’un Plan Académique ou un Plan Commerciel.

Le téléchargement du jeu est une fonctionnalité exclusive pour les utilisateurs avec un Plan Académique ou un Plan Commercial.

Obtenez votre Plan Académique ou Plan Commercial dès maintenant et commencez à intégrer vos jeux dans votre LMS, votre site Web ou votre blog.

Si vous le souhaitez, vous pouvez télécharger une jeu de test ici et tester son intégration:

Chapter 4: Functions..

Froggy Jumps

Parties jouées 29 %Précision 62 Temps moyen 17:06

À propos de cette activité

Test your function basics

Créé par

Viet Nam

Téléchargez la version pour jouer sur papier

Créez votre propre jeu gratuite à partir de notre créateur de jeu
Affrontez vos amis pour voir qui obtient le meilleur score dans ce jeu

Top Jeux

%
Anonyme
Anonyme
%
%
%
Vous avez dépassé le nombre maximum de jeux que vous pouvez imprimer avec votre Plan actuel.

Pour imprimer autant de jeux que vous le souhaitez, vous avez besoin d’un Plan Académique ou un Plan Commerciel.

Imprimez votre jeu
Chapter 4: Functions..
 

Froggy Jumps

Chapter 4: Functions..Version en ligne

Test your function basics

par 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)

Voulez-vous vraiment quitter la page ?

Si vous partez, vous perdrez la partie en cours.