Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

you wrote a pseudocode version of your block program. if position < 100…

Question

you wrote a pseudocode version of your block program.
if position < 100: # line 1
position = position + 10 # line 2
direction = direction + 90 # line 3
which type of block do you need for line 1?

Explanation:

Brief Explanations

Line 1 is an if statement which is a conditional statement. In block programming, conditional statements are represented by conditional blocks. These blocks check a condition (in this case, position < 100) and execute the code inside the block (Lines 2 and 3) if the condition is true.

Answer:

Conditional block.