Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

your python program has this code. for n = 1 to 10: position = position…

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

Explanation:

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).

Answer:

motion