Basic Coding with Commands
שאלות 10
מפתח התשובות מוצג למורים מחוברים.
-
Order of blocks
A character in a block-based program must walk to a star. Which order of blocks makes the character move forward, then turn, then move forward again?
Turn right, Move forward, Move forward, Turn right
Move forward, Turn right, Move forward
Move forward, Move forward, Move forward, Move forward
Turn right, Turn right, Turn right, Turn right
Commands in a sequence run one after another from top to bottom, in the order you place them. -
Purpose of a repeat block
A programmer wants a sprite to draw the same square four times. Which block is the most useful for doing this without copying the same blocks again and again?
A repeat block around the move and turn blocks
A sound block
A wait block placed at the end
A variable block that stores the color red
Think about a block that tells the computer to run a group of blocks a set number of times. -
-
Sequence order matters
Maya writes the blocks turn left, then move forward 100 steps. Her friend writes move forward 100 steps, then turn left. Why do the two programs often end in different places?
Because move forward 100 steps always runs before the program starts
Because block-based programs ignore the order of blocks
Because turn left always moves the sprite forward
Because the sprite changes direction before or after it moves, so the path is different
Blocks run in order, so think about which direction the sprite faces when it moves. -
Drawing a shape with a loop
Which program draws a triangle with three equal sides, using a repeat block?
Repeat 2 times: move forward 50 steps, turn 45 degrees
Repeat 3 times: move forward 50 steps, turn 120 degrees
Repeat 4 times: move forward 50 steps, turn 90 degrees
Repeat 10 times: move forward 50 steps, turn 10 degrees
A triangle has 3 sides, and the sprite must turn enough at each corner to face the next side. -
Reading a script
A script contains these blocks in order: when green flag clicked, repeat 4 times [say Hello for 1 second]. What will the sprite do after the green flag is clicked?
Say Hello once and stop
Do nothing because repeat blocks cannot contain speech blocks
Say Hello for 1 second four times
Say Hello forever
Look at the number inside the repeat block and what is placed inside it. -
Fixing a mistake
A student wants a sprite to move in a square, but the script only has one move block and one turn block with no repeat. What is the best change to make the sprite move in a full square?
Delete the turn block
Place the move and turn blocks inside a repeat 4 times block
Add a sound block at the start
Change the move block to a wait block
A square has four sides, so the move and turn pattern must happen four times. -
-
-
פרטים
- מקצועות
- מדעי המחשב נוסף על ידי AI שפות תכנות
- קהל יעד
- בית ספר יסודי · כיתות ב׳–ג׳
- רמת קושי
- 3 מתוך 10
- שפה
- אנגלית
- מי יכול לראות
- כולם
- הושלם על ידי AI
- מה שמסומן בניצוץ נוסף על ידי AI.
- נוצר באמצעות AI
- Claude Haiku 5.5
- נוצר
תגובות