Główna zawartość
Zasoby dla nauczycieli i rodziców
Kurs: Zasoby dla nauczycieli i rodziców > Rozdział 1
Lekcja 4: Nauczyciele programowania komputerowego- Program nauczania programowania - przegląd
- Śledzenie postępów uczniów w programowaniu
- Znajdowanie błędów w kodzie
- Programowanie parami w klasie
- Wskazówki dla nauczycieli: podstawy rysowania w JS
- Wskazówki dla nauczycieli: kolorowanie w JS
- Wskazówki dla nauczycieli: zmienne w JS
- Wskazówki dla nauczycieli: podstawy animacji w JS
- Wskazówki dla nauczycieli: interaktywność w JS
- Wskazówki dla nauczycieli: skalowanie za pomocą zmiennych w JS
- Wskazówki dla nauczycieli: tekst i zmienna tekstowa w JS
- Wskazówki dla nauczycieli: funkcje w JS
- Teaching guide: Intro to JS - Logic and if statements
- Teaching guide: Intro to JS - Looping
- Teaching guide: Intro to JS - Arrays
- Teaching guide: Intro to JS - Objects
- Teaching guide: Intro to JS - Object-oriented design
- Materiały informacyjne na temat programowania
- Dodatkowe projekty z programowania
- Propozycje planów lekcji: nauka programowania w klasie
- Przykłady dobrych praktyk: projekty interdyscyplinarne
- Studium przypadku - programowanie: Wyjdź poza program nauczania KA
- Przykłady dobry praktyk: nauka programowania w szkole podstawowej
© 2023 Khan AcademyWarunki użytkowaniapolitykę prywatnościInformacja o plikach cookie
Teaching guide: Intro to JS - Looping
This is a teaching guide for the Intro to JS course, for the 12th unit on Looping.
Czego uczniowie się nauczą
- How to use loops to repeat code, changing a value in the code sequentially each time (like to draw a row or column of shapes).
- The syntax for a
while
loop and afor
loop. - How to nest loops inside each other, a useful technique for changing two dimensions of values (like to draw a grid of shapes).
Uczniowie nauczą się pisać kod taki jak:
Z czym uczniowie mają kłopoty
- Students sometimes forget that they actually have to use the loop counter variable in their shape commands - otherwise their program will just draw a bunch of shapes on top of each other.
- Students may wonder when they should use a
while
loop versus afor
loop. Awhile
loop is the most general kind of loop, afor
loop is a more specific syntax that’s great for iterating through a sequence of numbers. For most drawings and animations, students will want to use afor
loop. - Students often forget all the parts of the
for
loop header. They can remember it by checking out the documentation example. Remind them that they don’t have to memorize programming syntax at first, as they will often have documentation - the important thing is to practice using the syntax and to understand it. - Students may write loops with the classic "off by one" error. That’s when their condition isn’t quite right, because they’re stopping one iteration too early or too late. Encourage them to think carefully about their condition, and what the values will be in the final iteration of code that will be executed.
Dodatkowe materiały: zadania nie wymagające komputera
Zadanie "bez komputera" jest zadaniem, które twoi uczniowie mogą wykonać bez potrzeby używania komputera. Mogą pomagać w przekazaniu pomysłów w bardziej instynktowny sposób lub być aktywnością zapasową, gdy komputery z jakiegoś powodu przestaną działać.
Code.org offers a For Loops Fun activity (see overview video, lesson plan, and example in-class video).
Dodatkowe materiały: pytania do dyskusji
Są to pytania, które możesz zadać uczniom indywidualnie, gdy ukończą ten samouczek lub poprowadź dyskusję grupową, jeżeli każdy ukończył samouczek do tego samego momentu.
- Look back at previous programs your students have made. Find ones with rows/columns of shapes, and ask students to point out where they could use loops. Perhaps if they have time, they can upgrade them.
- Look around the room. If you were drawing the room, where would you use loops?
Dodatkowe materiały: pytania i ciekawostki
Te pytania mogą być ciekawym zajęciem po tym, jak każdy uczeń ukończył samouczek. Mogą także prowadzić dyskusję na temat pytań, które sprawiły im trudność. Zagraj z nimi na Quizizz.
Chcesz dołączyć do dyskusji?
Na razie brak głosów w dyskusji