Introduction to Coding for Kids
Preguntas 10
Las respuestas correctas se muestran a los docentes que han iniciado sesión.
-
What is a sequence
In programming, what does it mean when instructions run in a sequence?
The instructions run one after another, in the order they are written
The instructions run in random order
The instructions are skipped unless a user clicks them
The instructions run at the same time, all together
Think about how you follow a recipe step by step from top to bottom. -
Purpose of a command
Which of the following best describes a command in a computer program?
A mistake made by the programmer
A list of names stored in a file
An instruction that tells the computer to perform a specific action
A picture that appears on the screen
Think about the word itself: a command is like an order given to someone to do something. -
-
Order matters
A robot is told to: move forward, then turn right, then move forward. If the order is changed to turn right first, then move forward, move forward, what can happen?
The robot always ends up in the same place
The robot may end up in a different place than planned
The robot will refuse to move
The robot will move backwards automatically
Consider how changing the order of steps can change where you finish on a map. -
Repeating a movement
A programmer wants a character to draw a square with four sides of equal length. Which approach uses a loop most sensibly?
Repeat the steps 'move forward, turn right' four times
Write 'stop' before the first move
Write 'move forward' once and never turn
Write 'turn left' one hundred times
A square has four identical sides and four identical corners, so count how many repeats are needed. -
Loop without repetition
Which of the following is the most accurate statement about a loop that is set to repeat 0 times?
Its instructions are not carried out at all
Its instructions run forever
The computer crashes immediately
Its instructions run exactly once
If you are asked to repeat something zero times, think about how many times you actually do it. -
Sequence of commands
Which set of commands, in this order, would make a character say 'Hello' and then wait one second?
Wait 1 second, then Say 'Hello'
Say 'Hello', then Wait 1 second
Wait 1 second and then never say anything
Say 'Hello' and Wait 1 second at the same time with no order
Read the question carefully: which action should happen first, the speaking or the waiting? -
-
-
Acerca de
- Materias
- Computers
- Etiquetas
- Añadido por IA loops Añadido por IA sequences Añadido por IA commands Añadido por IA coding basics
- Público
- Educación primaria · Grados 1–3
- Dificultad
- 2 de 10
- Idioma
- Inglés
- Quién puede verlo
- Todo el mundo
- Completado por IA
- Lo marcado con un destello lo añadió la IA.
- Escrito por IA
- Claude Haiku 5.5
- Creado
Comentarios