Code - How to Write Code 2
Walking is easy for us but can you make a character on a computer screen walk?

Code - How to Write Code 2

This quiz addresses part of the requirements of the National Curriculum KS1 for children aged 5 and 6 in years 1 and 2 in Computing. Specifically it looks at how to write a simple code to animate a character on a computer screen. It is one of 20 quizzes to help you find out about how computers work, and how they affect all our lives.

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. What code is Tom writing to make Henry walk? Remember, all the steps in a program have to be in the correct order.

Did you know...

You can play all the teacher-written quizzes on our site for just £9.95 per month. Click the button to sign up or read more.

Sign up here
  1. Henry is stood up on two legs. Tom wants Henry to start walking with his left leg.

    What code does Tom use?
    Henry has put his left leg forward
  2. The right leg now needs to move twice as far. Then it will be in front of the left leg.

    What does Tom code?
    Henry is now walking
  3. Next, Henry needs to swing his left leg forwards. It must go in front of the right leg.

    What does Tom code?
    Henry is walking really well!
  4. Now, Henry’s right leg needs to go in front of his left leg. Tom codes:
    There is a pattern - left, right, left, right
  5. Tom wants Henry to keep walking forwards. Which one of these keeps Henry walking?
    Tom is pleased: Henry is walking
  6. Tom can keep writing: Left Forward 2 Right Forward 2 again and again.

    But there is a lot to write down. So, Tom gives these codes a name. He calls them Walk.

    Now when Tom just writes Walk, what does Henry do?
    Now Tom can just type Walk and Henry takes two steps forwards
  7. Tom wants Henry to move two steps forward and then stop. What should he code?
    Henry stands on the spot
  8. Tom wants Henry to walk forward two steps, turn right, walk forward two more steps, then stop. What does Tom code?
    Henry has gone round a corner
  9. 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?
    Tom is getting good at controlling Henry
  10. Tom’s codes must be in the right _____.
    Tom’s codes must be in the right order - they must be in the correct sequence

Author: David Bland

The Tutor in Your Computer!

Quiz yourself clever - 3 free quizzes in every section

  • Join us (£9.95/month) to play over 4,000 more quizzes
  • Reinforce your school learning in the comfort of home
  • Build your confidence in National Curriculum subjects
  • Test yourself to identify gaps in learning
  • Revise fast for tests and exams

© Copyright 2016-2017 - Education Quizzes
TJS - Web Design Lincolnshire

Valid HTML5

We use cookies to make your experience of our website better.

To comply with the new e-Privacy directive, we need to ask for your consent - I agree - No thanks - Find out more