QUESTION IMAGE
Question
your python program has this code.
for n = 1 to 10:
position = position + 10 # move the position 10 steps.
direction = direction + 90 # change the direction by 90 degrees.
you decided to write your program in a block programming language. what type of block do you
accomplish what the 2nd line does?
control
motion
event
voice and graphics
Brief Explanations
- Control blocks manage program flow (e.g., loops, conditionals).
- Motion blocks handle movement - related actions (e.g., changing position).
- Event blocks respond to external triggers (e.g., mouse clicks).
- Voice and graphics blocks deal with audio / visual output.
The second line position = position + 10 is about changing the position (a movement - related action).
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
motion