Tom now wants Henry to go forward two steps, turn left, walk forward two steps, then turn left again, and then stop.What code does Tom use?

🎲 Try a Random Question  |  Total Questions in Quiz: 20  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Grades 3, 4 and 5 - Computer Science - Elementary School - Writing Code — practice the complete quiz, review flashcards, or try a random question.

Rhea is using a computer to draw shapes. A hedgehog on the computer screen walks round the different shapes. Rhea is writing code to get the hedgehog to draw the correct shape on the computer screen. In the quiz below, Rhea is programming the hedgehog to draw a rectangle. The rectangle must be 30cm long and 20cm deep.

Tom has a character on his computer screen. The character is called Henry. Tom wants to animate Henry and make him walk around the screen. In the quiz below, what code is Tom writing to make Henry walk?

Remember, all the steps in a program have to be in the correct order.


Tom now wants Henry to go forward two steps, turn left, walk forward two steps, then turn left again, and then stop.<br /><br />What code does Tom use?