# KS1 Computing Quiz - Code - An Introduction (Questions)

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 is an introduction to code and building scripts and gives some examples of simple programs. It is one of 20 quizzes to help you find out about how computers work, and how they affect all our lives.

We have looked at examples of algorithms. Once you have your algorithm written down you have a simple plan. It has steps in it. But computers and robots cannot understand what you have written down. They only understand codes. These codes can be words, letters or numbers. They are like a special language. So you have to take each step in your algorithm and turn it into code. Codes make up units. Then we use these units when building scripts. Scripts can run programs. Programs have a lot of code to make a computer do a job.

1. To make a computer work, algorithms have to be turned into ____.
 [ ] Sentences [ ] Paragraphs [ ] Code [ ] Stories
2. What is computer code?
 [ ] A special language [ ] A foreign language [ ] A list of passwords [ ] A list of shapes
3. An algorithm says: Go up 3 squares to the top of the screen.

Which one of these could be code for this?
 [ ] Down 3 squares [ ] Up 3 squares [ ] Right 3 squares [ ] Left 3 squares
4. Code can use symbols and numbers. What else could be a code for: Up 3 squares?
 [ ] →3● [ ] ↓3■ [ ] ↑3■ [ ] ↑3▲
5. Adil wants to control a toy robot moving round a room. Adil writes this step in his algorithm:

Turn right at the wall.

What could be the code for this?
 [ ] Forward. Wall? Yes - Left. No - Right [ ] Right. Wall? Yes - Stop. No - Back [ ] Forward. Wall? Yes - Right. No - Forward [ ] Right. Wall? Yes - Forward. No - Stop
6. Code is written in short steps. A series of these steps in code is called a ______.
 [ ] Story [ ] Algorithm [ ] Script [ ] Text
7. A lot of code to do a job is called a _______.
 [ ] Story [ ] History [ ] Algorithm [ ] Program
8. Adil wrote code to control a toy robot. Adil was ___________ the computer to move round the room.
 [ ] Drawing [ ] Programming [ ] Shaping [ ] Colouring
9. Sasha writes a program to draw a square. The program is made up of ____.
 [ ] Rhymes [ ] Code [ ] Poems [ ] Songs
10. Which one of these could be a code?
 [ ] Go round the corner and walk forward five paces [ ] The car turned right and then drove for five miles [ ] Alice turned round and saw five birds sitting on a fence [ ] Turn→5
KS1 Computing Quiz - Code - An Introduction (Answers)
1. To make a computer work, algorithms have to be turned into ____.
 [ ] Sentences [ ] Paragraphs [x] Code [ ] Stories
The code used to create web pages is called HTML
2. What is computer code?
 [x] A special language [ ] A foreign language [ ] A list of passwords [ ] A list of shapes
One language used to write computer code is called Scratch. Have you used Scratch?
3. An algorithm says: Go up 3 squares to the top of the screen.

Which one of these could be code for this?
 [ ] Down 3 squares [x] Up 3 squares [ ] Right 3 squares [ ] Left 3 squares
Code is a series of very simple instructions
4. Code can use symbols and numbers. What else could be a code for: Up 3 squares?
 [ ] →3● [ ] ↓3■ [x] ↑3■ [ ] ↑3▲
Can you use these symbols to write down the code for: Down 4 squares?
5. Adil wants to control a toy robot moving round a room. Adil writes this step in his algorithm:

Turn right at the wall.

What could be the code for this?
 [ ] Forward. Wall? Yes - Left. No - Right [ ] Right. Wall? Yes - Stop. No - Back [x] Forward. Wall? Yes - Right. No - Forward [ ] Right. Wall? Yes - Forward. No - Stop
The toy robot must keep going until it reaches the wall, and then turn right
6. Code is written in short steps. A series of these steps in code is called a ______.
 [ ] Story [ ] Algorithm [x] Script [ ] Text
An algorithm has steps, but they are not written in code
7. A lot of code to do a job is called a _______.
 [ ] Story [ ] History [ ] Algorithm [x] Program
You can programme computers to do different jobs
8. Adil wrote code to control a toy robot. Adil was ___________ the computer to move round the room.
 [ ] Drawing [x] Programming [ ] Shaping [ ] Colouring
What could you programme a toy robot to do?
9. Sasha writes a program to draw a square. The program is made up of ____.
 [ ] Rhymes [x] Code [ ] Poems [ ] Songs
Code can include words, but it is not like ordinary English
10. Which one of these could be a code?
 [ ] Go round the corner and walk forward five paces [ ] The car turned right and then drove for five miles [ ] Alice turned round and saw five birds sitting on a fence [x] Turn→5
What sort of code have you used?