Coding Basics: Sequences and Loops
שאלות 10
מפתח התשובות מוצג למורים מחוברים.
-
Order of blocks
A robot must draw a square. Which order of block commands will make it draw the square correctly, starting from the beginning?
Move forward, move forward, move forward, move forward
Move forward, turn right, turn right, move forward
Move forward, turn right, move forward, turn right, move forward, turn right, move forward, turn right
Turn right, turn right, turn right, turn right
A square has four equal sides, and each corner needs a turn after each side. -
What a sequence means
In block coding, what does the word sequence mean?
The blocks run one after another in a specific order
The blocks are all colored the same
The blocks are shared between different programs
The program runs only once and then stops
Think about how the blocks are lined up on the screen and when each one runs. -
Repeat block purpose
Why do programmers use a repeat block instead of placing the same block many times?
It removes the need for any commands
It makes the computer faster at every task
It lets the sprite skip steps automatically
It makes the program shorter and easier to change
Imagine copying the same block ten times versus writing it once inside a loop. -
-
Finding a bug
A program is supposed to move a character to the right three times, but it moves only once. What is the most likely reason?
The move block is not inside the repeat block, or the repeat number is wrong
The character has the wrong color
The program has too many sounds
The computer screen is too small
Look at the blocks that control how many times the move runs. -
-
Wrong order
A character must wave before it jumps. The blocks are placed as Jump then Wave. What should the programmer do to fix the program?
Delete the Jump block
Swap the blocks so Wave comes before Jump
Add a repeat block around the Wave block
Change the color of the character
Blocks run from top to bottom, so check which block is on top. -
-
Testing a program
A student wants to check whether a short script works correctly. What is the best first step?
Ask someone else to write a new program
Change every block to a new color
Add many more blocks without testing
Run the script and watch what each block does step by step
Testing means running the program and comparing what happens to what should happen. -
Repeat with a pattern
A sprite should draw a triangle using a repeat block. The triangle has 3 sides and each corner turns the sprite by 120 degrees. Which block sequence inside the repeat block is correct?
Move 50 steps, then turn 360 degrees
Move 50 steps, then turn 120 degrees
Move 50 steps, then turn 90 degrees
Turn 50 degrees, then move 120 steps
Each side is drawn with a move block, and the turn after it matches the corner angle.
פרטים
- מקצועות
- מדעי המחשב
- תגיות
- נוסף על ידי AI block coding נוסף על ידי AI loops נוסף על ידי AI sequences נוסף על ידי AI debugging נוסף על ידי AI sprites
- קהל יעד
- בית ספר יסודי · כיתות ב׳–ד׳
- רמת קושי
- 2 מתוך 10
- שפה
- אנגלית
- מי יכול לראות
- כולם
- הושלם על ידי AI
- מה שמסומן בניצוץ נוסף על ידי AI.
- נוצר באמצעות AI
- Claude Haiku 5.5
- נוצר
תגובות