Coding club : apprendre à programmer (6e)
Fiche à imprimer : le cours, les trois exercices et le corrigé (sur une page à part). Revenir au cours en ligne
| Anglais | Français |
|---|---|
| to code / coding 💻 | coder, programmer / la programmation |
| a program | un programme |
| a bug 🐞 | un bug, une erreur |
| a loop 🔁 | une boucle |
| if... then... | si... alors... |
| to run the program | lancer le programme |
Programmer (to code), c'est donner des instructions très précises à un ordinateur. Beaucoup de mots de l'informatique viennent de l'anglais ! Une erreur s'appelle a bug (un insecte !) : en 1947, une vraie mite coincée dans un ordinateur avait provoqué une panne. Une boucle (a loop) répète des actions : Repeat 4 times: move forward, turn right. Une condition s'écrit if... then... : If you touch a wall, then turn left.
Mise en situation : au club de code
À retenir
- to code, a program, a bug, a loop, if... then..., to run, to debug.
- Move forward! Turn right! Repeat four times! If..., then...!
Exercice 1 : La programmation : exercice 1 (QCM)
- « programmer »
- to coat
- to cod
- to code
- « une erreur (informatique) »
- a big
- a bag
- a bug
- « une boucle »
- a loop
- a loup
- a look
- « lancer le programme »
- to launch on program
- to run the program
- to race the program
- « corriger un bug »
- to debug
- to rebug
- to unbug
- « si... alors... »
- if... then...
- when... so...
- if... than...
- « Avance ! »
- Go front!
- Move forwards back!
- Move forward!
- Pour un carré, l'angle est de...
- 45 degrés
- 90 degrés
- 120 degrés
- D'où vient le mot « bug » ?
- une vraie mite coincée dans un ordinateur
- un jeu vidéo
- un robot
- « Répète quatre fois. »
- Repeat four time.
- Repeat for times.
- Repeat four times.
Exercice 2 : La programmation : exercice 2 (à compléter)
- Let's .......................... the robot.
- Move .......................... ten steps.
- Turn .......................... .
- Use a .......................... ! (boucle)
- Repeat four .......................... .
- Let's .......................... the program.
- There's a .......................... !
- Let's .......................... it.
- If you touch a wall, .......................... turn left.
- Now it .......................... !
Exercice 3 : La programmation : mise en situation
- Tu dis au robot d'avancer.
- Move forward!
- Moving forward!
- Move to front!
- Tu proposes une boucle.
- Use a look!
- Use a loop!
- Use loop a!
- Tu lances le programme.
- Let's running the program!
- Let's race the program!
- Let's run the program!
- Tu trouves une erreur.
- There are a bug!
- There's a bug!
- There's a bag!
- Tu proposes de corriger l'erreur.
- Let's debugging it!
- Let's unbug it!
- Let's debug it!
- Tu écris une condition.
- When you touch wall, so turn left.
- If you touch a wall, than turn left.
- If you touch a wall, then turn left.
- Tu dis que ça marche.
- It works!
- It walks!
- It work!
- Tu dis « Répète quatre fois ».
- Repeat four time.
- Repeat four times.
- Repeat for times.
- Tu dis que tu aimes programmer.
- I love coding!
- I loves coding!
- I love to codes!
- Tu demandes de vérifier l'angle.
- Check angle the!
- Check the angel!
- Check the angle!
Corrigé
Exercice 1
1. c) to code · 2. c) a bug · 3. a) a loop · 4. b) to run the program · 5. a) to debug · 6. a) if... then... · 7. c) Move forward! · 8. b) 90 degrés · 9. a) une vraie mite coincée dans un ordinateur · 10. c) Repeat four times.
Exercice 2
1. program · 2. forward · 3. right · 4. loop · 5. times · 6. run · 7. bug · 8. debug · 9. then · 10. works
Exercice 3
1. a) Move forward! · 2. b) Use a loop! · 3. c) Let's run the program! · 4. b) There's a bug! · 5. c) Let's debug it! · 6. c) If you touch a wall, then turn left. · 7. a) It works! · 8. b) Repeat four times. · 9. a) I love coding! · 10. c) Check the angle!