wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Y7 Programming Test - code.org

Total questions: 100

Worksheet time: 5hrs 40mins

Name
Class
Date
1.

a)
b)
c)
d)
2.

Now use the REPEAT block! Repeat HOW MANY TIMES?

a)
b)
c)
d)
3.
a)
b)
c)
d)
4.

a)
b)
c)
d)
5.

Now use the REPEAT!

a)
b)
c)
d)
6.
a)
b)
c)
d)
7.

a)
b)
c)
d)
8.

a)
b)
c)
d)
9.

a)
b)
c)
d)
10.

a)
b)
c)
d)
11.

a)
b)
c)
d)
12.

Which is BETTER?

a)
b)
13.

Which SOLUTION goes with the code?

a)
b)
14.

Pick the BEST code for the farmer to collect all of the corn.

a)
b)
c)
15.
a)
b)
16.

a)
b)
c)
17.

a)
b)
c)
d)
18.

Solve this puzzle

a)
b)
c)
d)
19.

Which code will get the Angry Bird to the Pig?

a)
b)
c)
20.

What is wrong with the code to get Scrat to the acorn?

a)

The first "move forward" is not needed.

b)

The first "turn right" should be a "turn left"

c)

The second "move forward" is extra

d)

The last "turn right" should be a "turn left"

21.

A part of the program that does not work correctly.

a)

Bug

b)

Break

c)

Loop

22.

The action of doing something over and over again.

a)

Looping

b)

Bugging

c)

Programming

23.

What does this code do?

a)

Moves forward 1 time

b)

Moves forward forever

c)

Moves forward 5 times

d)

Moves left

24.

Which of the code below will complete this puzzle?

a)
b)
c)
d)
25.

How long are the sides of this shape?

a)

2 pixels

b)

120 pixels

c)

150 pixels

d)

Purple pixels

26.

The language that programmers create and use to tell a computer what to do

a)

Code

b)

Command

c)

Run Program

d)

BINARY

27.

A block is

a)

an instruction in a coding program that can be joined to other blocks to build code

b)

visual elements on a screen that are not text, such as pictures, icons and symbols

c)

something a computer program can react to, such as a key being pressed or mouse being clicked

d)

place to store data that can change in a program

28.

Coding can be used to

a)

Program robots

b)

Create websites, games & apps

c)

Tell computers what to do

d)

All of the above

29.
In coding, an event is:
a)
trying again and again, even when something is hard.
b)
an example of being a good digital citizen.
c)
an error in a program that prevents the program from running as expected.
d)
an action that causes something to happen.
30.

Finding and fixing errors in a program.

a)

debugging

b)

bug

c)

nested loop

d)

event

31.

Look at the puzzle and the code below. What can you fix in the code to help the bird get to the pig?

a)

Remove a move forward block

b)

Add a move forward block

c)

Change the first turn block to left

d)

Change the second turn block to left

32.

What shape does this code make?

a)

Rectangle

b)

Triangle

c)

Square

d)

Circle

33.
A placeholder for a piece of information that can change.
a)
Variable
b)
Condition
c)
Program
d)
Loop
34.

Can this code be written better?

a)

Yes, by using loops (repeat blocks)

b)

No, this is the best way to right this code

35.

statements that only run under certain conditions

a)

conditionals

b)

paramenter

c)

reflect

d)

variable

36.

A list of steps to finish a task.

a)

Algorithm

b)

Program

c)

Bug

37.

What is an algorithm?

a)

a list of shopping items you need

b)

a list of tech items you want

c)

a list of steps to complete a task

38.

Look at the puzzle. What can you fix in the code so the bird will make it to the pig?

a)

Change the first turn block to left

b)

Remove a move forward block

c)

Add a move forward block

d)

Change the second turn block to left

39.

Is there more than one way to code a puzzle?

a)

No

b)

No, but you can make up your own design

c)

Yes

d)

Yes, but it will be counted wrong

40.

If you weren't able to complete a challenge the first time you should

a)

pout

b)

give up

c)

try again

d)

bang on the keyboard

41.

What does this code do?

a)

Moves forward, turns, moves forward

b)

Moves forward 2 times, turns left, moves forward 2 more times

c)

Moves forward 4 times and turns left

d)

Moves and turns

42.
A person who writes code is called a
a)
coder
b)
computer programmer
c)
technologist
d)
scientist
43.

A ____ lets us repeat something over and over again.

a)

program

b)

loop

c)

command

44.

Find the loop block.

a)

b)

c)

45.

How many times does this loop repeat?

a)

4

b)

5

c)

6

46.

Which program is the same as the picture?

a)

b)

c)

47.

What will happen when you click Run?

a)

The squirrel will get the nut.

b)

The squirrel will stop before the nut.

c)

The squirrel will fall in the water.

48.

Will the squirrel get the nut?

a)

Yes

b)

No

49.

Which program is the same?

a)

b)

c)

50.

Which program will help the artist finish the drawing?

a)

b)

c)

51.

Which program will help the artist finish the drawing?

a)

b)

c)

52.

Which program will help the artist finish the drawing?

a)

b)

c)

53.

Which program will help the artist finish the drawing?

a)

b)

c)

54.

Which of these blocks is a loop structure?

a)
b)
c)
d)
55.

How many lines will the artist draw based on the code in the picture?

a)

1

b)

2

c)

3

d)

4

56.

What number should replace the "?" in the code?

a)

3

b)

4

c)

12

d)

11

57.

What is the next block you would add to solve this puzzle?

a)
b)
c)
d)
58.

Which block would you use to replace the "?" in the code?

(click the picture to make it bigger)

a)
b)
c)
d)
59.

The artist has to draw a window for the spaceship.

How many times does the pattern need to repeat in order to complete the picture?

a)
b)
c)
d)
60.

What block would be the first step in creating a code that tells the artist to draw over the gray lines?

a)
b)
c)
d)
61.

Which is the correct way to shorten this code?

(click the picture to make it bigger)

a)
b)
62.

Which is the correct code for this puzzle?

a)
b)
63.

Which block would you use to create a variable in a program on Code.org?

a)
b)
c)
d)
64.

What is the next block you would add to solve this puzzle?

a)
b)
c)
d)
65.

Which block would you use to replace the "?" in the code?

(click the picture to make it bigger)

a)
b)
c)
d)
66.

Which block would you use to create a variable in a program on Code.org?

a)
b)
c)
d)
67.

Which code will get the Angry Bird to the Pig?

a)
b)
c)
68.

Which of the code below will complete this puzzle?

a)
b)
c)
d)
69.

What needs to be changed to fix the program?

a)

repeat 3

turn right

repeat 5

b)

repeat 4

turn left

repeat 5

c)

repeat 3

turn right

repeat 4

d)

repeat 4

turn right

repeat 5

70.

What needs to be changed to fix the program?

a)

repeat 5

repeat 4

repeat 5

b)

repeat 4

repeat 4

repeat 4

c)

repeat 5

repeat 4

repeat 4

d)

repeat 4

repeat 5

repeat 4

71.

What is a conditional loop?

a)

A loop that repeats the code inside a set number of times

b)

A loop that repeats the code forever

c)

A loop that repeats until a condition is true

d)

A loop that repeats the code once

72.

What is a fixed loop?

a)

A loop that repeats the code inside a set number of times

b)

A loop that repeats the code forever

c)

A loop that repeats the code 10 times

d)

A loop that repeats the code once

73.

What needs to be changes for the bee to collect the nectar from the flowers?

a)

repeat 6

move forward

if at flower

do make honey

else get nectar

b)

repeat 7

move forward

if at flower

do get nectar

else make honey

c)

repeat 7

move forward

if at flower

do make honey

else get nectar

d)

repeat 6

move forward

if at flower

do get nectar

else make honey

74.

What two errors need to be changed to fix the code?

a)

repeat 3 times

change turn right to left

b)

repeat 4 times

add move forward before turn right

c)

repeat 3 times

swap remove1 and turn right

d)

repeat 4 times

change turn right to left

75.

How many times will Elsa of Arendelle need to repeat the code?

a)

5 times

b)

4 times

c)

6 times

d)

3 times

76.

The sheep-shearer must get next to the sheep to shear them. How will he do this?

a)

Move forward

Move forward

Shear

Turn left

Move forward

Shear

b)

Move forward

Shear

Turn left

Move forward

Move forward

Shear

c)

Move forward

Move forward

Shear

Turn right

Move forward

Shear

d)

Move forward

Move forward

Turn left

Shear

Move forward

Shear

77.

How many time should the code repeat for BB-8 to collect all the scrap?

a)

8 times

b)

4 times

c)

5 times

d)

6 times

78.

Look at the code carefully. What do you think will happen when the code is run?

a)

Laurel will collect 4 pieces of treasure using this code.

b)

Laurel will try to collect treasure where there is not any and it causes an error.

c)

Laurel will collect all of the treasure.

d)

I don't know.

79.

Look carefully at the code. What will happen when the code is run?

a)

The Artist will draw a triangle with 3 equal sides

b)

The Artist will draw a single line

c)

The Artist will draw a square

d)

I don't know

80.

Which of the following examples IS NOT an example of a conditional?

a)
b)
c)
d)
81.

Which of the for loops is set up correctly to complete this maze?

a)
b)
c)
d)
82.

figure out the details of the problems that you are trying to solve

a)

reflect

b)

variable

c)

debugging

d)

define

83.

a placeholder for a piece of information that can change

a)

variable

b)

for loop

c)

define

d)

parameter

84.

a named group of programming instructions. They are reusable abstractions that reduce the complexity of writing and maintaining programs.

a)

for loop

b)

while loop

c)

function

d)

condition

85.

the art of creating a program

a)

program

b)

debugging

c)

paramenter

d)

programming

86.

A statement that a program checks to see if it is true or false. If true, an action is taken. Otherwise, the actions is ignored.

a)

condition

b)

while loop

c)

conditionals

d)

function

87.

carefully think back on something with the intention of improvising the outcome in the future

a)

program

b)

define

c)

repeat

d)

reflect

88.

attempt to do something

a)

program

b)

bug

c)

loop

d)

try

89.

research, plan, and acquire materials from the activity you are about to do

a)

for loop

b)

reflect

c)

define

d)

prepare

90.

the action of doing something over and over again

a)

for loop

b)

while loop

c)

bug

d)

loop

91.

an extra piece of information passed to a function to customize it for a specific need

a)

programming

b)

while loop

c)

variable

d)

paramenter

92.

do something again

a)

reflect

b)

program

c)

repeat

d)

define

93.

finding and fixing problems in an algorithm or program

a)

bug

b)

conditionals

c)

variable

d)

debugging

94.

loops that have a predetermined beginning, end, and increment (step interval)

a)

variable

b)

for loop

c)

program

d)

while loop

95.

a programming construct used to repeat a set of commands as long as a condition is true

a)

condition

b)

for loop

c)

variable

d)

while loop

96.

an action that causes something to happen

a)

loop

b)

define

c)

event

d)

conditionals

97.

part of a program that does not work correctly

a)

bug

b)

variable

c)

debugging

d)

try

98.

an algorithm that has been coded into something that can be run be a machine

a)

parsnip

b)

parameter

c)

program

d)

conditionals

99.

statements that only run under certain conditions

a)

conditionals

b)

paramenter

c)

reflect

d)

variable

100.

What is computational thinking?

a)

Thinking like a computer.

b)

Techniques used to solve problems.

c)

Computer programming