wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Code.org - 70 Questions

Total questions: 70

Worksheet time: 36mins

Name
Class
Date
1.

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

a)

Bug

b)

Algorithm

c)

Parameter

d)

Program

2.

A graphic character on the screen with properties that describe its location, movement, and look.

a)

Debugging

b)

Bug

c)

Variable

d)

Sprite

3.

A placeholder for a piece of information that can change.

a)

Debugging

b)

Sprite

c)

Variable

d)

Parameter

4.

A Function will...

a)

make and name a variable

b)

Let you write code that can be stored and used a number of times.

c)

allow you to move the sprite any way it would like

d)

write your code for you

5.

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"

6.

Which of the code below will complete this puzzle?

a)
b)
c)
d)
7.

How long are the sides of this shape?

a)

2 pixels

b)

120 pixels

c)

150 pixels

d)

Purple pixels

8.

How many times will the bee collect nectar if it follows the entire path?

a)

5

b)

7

c)

8

d)

6

9.

Which of these blocks would let you add a new sprite to your program?

a)
b)
c)
d)
10.

What is an event?

a)

Something on your calendar that you've been preparing for for weeks!

b)

An evil tent.

c)

An action that causes something to happen.

d)

A big party.

11.

What is wrong with this code block?

a)

It should say YELLOW in caps.

b)

It should say "yellow" in quotes.

c)

There is no fill code block in Game Lab.

d)

Yellow is not a color recognized by name.

12.

Solve the puzzle

a)
b)
c)
d)
13.

The cloud is blocking the view. There could be a flower under this cloud. If there is a flower, the bee will need to collect nectar once. If there is not a flower the bee should do nothing. Take a good look at the code below. What do you think will happen after you click "Run"?

a)

The bee will move to the cloud and try to get nectar, no matter what.

b)

The bee will move to the cloud and only try to get nectar if there is a flower underneath.

c)

The bee will move to the cloud and then do nothing, no matter what.

d)

The bee will not reach the cloud.

14.

Which of these problems will this code solve?

a)
b)
c)
d)

All of these

e)

None of these

15.

Which of these are conditionals? (They only run under certain conditions). Select all that apply.

a)
b)
c)
d)
e)

All of these

16.

Use the if/else block to collect nectar at flowers and make honey at honeycomb. Remember: if there is a flower, the bee only needs to get nectar once. If there is a honeycomb, the bee only needs to make honey once.

a)
b)
c)
d)
e)

None of these

17.

Which of these describes the block shown?

a)

When something happens, start this algorithm.

b)

If the statement is true do this code.

c)

If the condition is true do this code. If the statement is false, do something else.

d)

Repeat this code a certain number of times.

e)

All of these

18.

Use loops to draw this staircase.

Each stair step is 50 pixels long and 50 pixels tall

You will need to turn 90 degrees in each direction

a)
b)
c)
19.

What coding language is used in Code.org App Lab?

a)

JavaScript

b)

HTML

c)

Logo

20.

Select the correct code.

a)

A

b)

B

c)

C

21.

Which line of code produces the message?

a)

1

b)

2

c)

3

22.

Does the code match the app screenshot?

a)

Yes

b)

No

23.

Does the code match the app screenshot?

a)

Yes

b)

No

24.

Does the code match the app screenshot?

a)

Yes

b)

No

25.

Does the code match the app screenshot?

a)

Yes

b)

No

26.

Which object is the code being applied to?

a)

A

b)

B

c)

C

27.

Do the properties match the app screenshot?

a)

Yes

b)

No

28.

How many screens does the app included.

a)

10

b)

11

c)

12

29.

What happens when the user clicks the right button?

a)

The left screen loads and a sound plays.

b)

The right screen loads.

c)

The right screen loads and a sound plays.

30.

What will happen when I hit run on this code?

a)

The bird will reach the pig.

b)

The bird will not reach the pig, or hit a wall.

c)

The bird will hit the wall before he reaches the pig.

d)

The bird will do nothing.

31.

What is the best way to solve this puzzle?

a)
b)
c)
d)
32.

What is the name of the sprite variable in the code pictured? (Click on picture to enlarge.)

a)

fly

b)

ladybug

c)

bug

d)

space

33.

What keyboard key do you need press to move the sprite?

a)

x

b)

y

c)

up arrow

d)

space

34.

Which direction will the sprite move in the code pictured? (Click on picture to enlarge.)

a)

Left

b)

Right

c)

Up

d)

Down

35.

The code in the image is an example of

a)

an IF Statement

b)

a DrawLoop

c)

the counter pattern

d)

reducing the size of a sprite

36.

Which line of code creates a sprite?

a)

Line 1

b)

Line 2

c)

Line 8

d)

Line 9

37.

What is the best option to solve this artist puzzle?

a)
b)
c)
d)
38.

What code causes the output shown after 4 measures?

a)
b)
c)
d)
39.

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

40.

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"

41.

Which choice best explains this code?

a)

The character will move forward if there is a path ahead and turn right if there is no path ahead.

b)

The character will turn right if there is a path ahead and move forward if there is no path ahead.

c)

The character will turn right if there is a path ahead and turn left if there is no path ahead.

42.

What is the 4-bit binary number for decimal 13?

a)

1110

b)

1111

c)

1101

d)

1011

43.

True or false: You cannot count as high using binary numbers as you can with decimal numbers.

a)

True

b)

False

44.

Which is the best definition for "bit?"

a)

A set of rules governing the exchange or transmission of data between devices.

b)

Transmission capacity measured by bit rate.

c)

A single unit of information in a computer, typically represented as 1 or 0.

d)

Time it takes for a bit to travel from its sender to its receiver.

e)

The number of bits that are conveyed or processed per unit of time, for example, bits/second.

45.

Which is the best definition for "latency?"

a)

A set of rules governing the exchange or transmission of data between devices.

b)

Transmission capacity measured by bit rate.

c)

A single unit of information in a computer, typically represented as 1 or 0.

d)

Time it takes for a bit to travel from its sender to its receiver.

e)

The number of bits that are conveyed or processed per unit of time, for example, bits/second.

46.

Which is the best definition for "bit rate?"

a)

A set of rules governing the exchange or transmission of data between devices.

b)

Transmission capacity measured by bit rate.

c)

A single unit of information in a computer, typically represented as 1 or 0.

d)

Time it takes for a bit to travel from its sender to its receiver.

e)

The number of bits that are conveyed or processed per unit of time, for example, bits/second.

47.
Why was a computer mouse called a 'mouse'
a)
It is the same size
b)
A wire comes out of it like a tail
c)
It is usually grey
d)
It has two eyes
48.
Who developed the first program?
a)
Alan Turing
b)
Charles Babbage
c)
Ada Lovelace
d)
Tim Berners Lee
49.

In the mid 40's, ENIAC was built by:

a)

America

b)

Germany

c)

Japan

d)

France

50.

Personal Computers (PCs) became accessible in:

a)

1960s

b)

1970s

c)

1980s

d)

1990s

51.

Graphic User Interface (GUI) made computers more user-friendly because:

a)

they became faster.

b)

they became smaller.

c)

they used icons instead of commands.

d)

they used a mouse.

52.
Steve Jobs couldn't write code
a)
True
b)
False
53.
The first computer game made in 1972 was called...
a)
Pong
b)
Space invaders
c)
Pac Man
d)
Chess
54.

What will the console log say when this program is run?

a)

"Starting my program!"

"You clicked the button!"

"Ending my program!"

b)

"Starting my program!"

"Ending my program!"

"You clicked the button!"

c)

"You clicked the button!"

"Starting my program!"

"Ending my program!"

d)

"You clicked the button!"

"Ending my program!"

"Starting my program!"

55.

After the program is run, what will the text color of smallButton be?

a)

red

b)

blue

c)

green

d)

yellow

56.

If the user clicks the button, what color will "topButton" be when the program finishes running?

a)

red

b)

green

c)

blue

d)

orange

57.

When this program is run, the user clicks "topButton" then "bottomButton" and then "topButton" again. What will be displayed in the console?

a)

aaa

bbb

ccc

aaa

b)

aaa

ccc

bbb

aaa

c)

ccc

aaa

bbb

aaa

d)

aaa

bbb

aaa

ccc

58.

What is a reason to include comments in a program?

a)

Comments tell the computer what the code is doing.

b)

Comments tell the programmer what the code is doing.

c)

Comments help the user work an app more effectively.

d)

Comments will show up in the console so when the program is run, the programmer know what happens.

59.
a)

The car goes right.

and is speeding up.

b)

The car goes right.

and is slowing down.

c)

The car goes right, slows down and then goes backward.

d)

The car goes right, slows down and then stops.

60.
a)

The car goes left, slows down and stops.

b)

The car goes right, slows down and stops.

c)

The car goes down, slows down and stops.

d)

The car goes up, slows down and stops.

61.

A Theme that is repeated many times.

a)

Programming

b)

Repeat

c)

Pattern

62.
Coding can be used to
a)
Program robots
b)
create websites, games & apps
c)
tell computers what to do
d)
all of the above
63.

Statements that can only run under certain conditions or situations such as: if the seat is taken, then move to the next available seat.

a)

conditionals (if/then statements)

b)

variable

c)

abstractions

d)

binary

64.

A part of the program that does not work correctly.

a)

Bug

b)

Break

c)

Loop

65.

The action of doing something over and over again.

a)

Looping

b)

Bugging

c)

Programming

66.

Does Code.org supports minecraft adventurer?

a)

True

b)

False

c)

None of above

67.

What is the expected outcome of the following code?

a)

nothing is shown, there are no sprites

b)

the background is white and we can't see anything because the textsize is 0;

c)

the background is white, the counter text increases in size as the counter variable increases.

d)

the background is white, and we see a number that goes up but the textsize stays the same.

68.

An algorithm that has been coded into something that can be run by a machine.

a)

program

b)

computer

c)

spanish

d)

sleep

69.

Which of the following would be a well-named function IF we are following all important naming conventions?

a)

#drawStar()

b)

Drawstar()

c)

DrawStar()

d)

drawStar()

70.

What would you use to replace the "?" in the code?

(click the picture to make it bigger)

a)

length

b)

60

c)

counter

d)

3