wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Unit 2: Code.org

Total questions: 82

Worksheet time: 57mins

Name
Class
Date
1.

the art of creating a program

a)

program

b)

debugging

c)

paramenter

d)

programming

2.

the action of doing something over and over again

a)

for loop

b)

while loop

c)

bug

d)

loop

3.

finding and fixing problems in an algorithm or program

a)

bug

b)

conditionals

c)

variable

d)

debugging

4.

part of a program that does not work correctly

a)

bug

b)

variable

c)

debugging

d)

try

5.

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

a)

parsnip

b)

parameter

c)

program

d)

conditionals

6.

Infinite loops are also called _________ loops.

a)

endless

b)

forever

c)

never ending

7.

George wanted to make a robot that prepared him a bowl of ice cream every day when he got home from work.He noticed that the robot made the same motion over and over again. He decided to loop that behavior in his program. What part of Computational Thinking was she using?

a)

Abstraction

b)

Decomposition

c)

Algorithm

d)

Pattern Matching

8.

Remembering methods for solving previous problems.

a)

Decomposition

b)

Algorithm

c)

Abstraction

d)

Pattern Matching

9.

Mr. Hillegonds wanted to help a student get to the 6th grade wing. He gave him step by step instructions to help him get to the 6th grade wing. What part of Computational Thinking was he using?

a)

Abstraction

b)

Decomposition

c)

Algorithm

d)

Pattern Matching

10.

Identify the strategy: While running errands, Jane remembered the fastest way to Meijer.

a)

Decomposition

b)

Algorithm

c)

Abstraction

d)

Pattern Matching

11.

Identify the strategy: Tim decides to break is homework into several pieces.

a)

Decomposition

b)

Algorithm

c)

Abstraction

d)

Pattern Matching

12.
Breaking a complex problem down into smaller problems and solving each one individually.
a)
Decomposition
b)
Abstraction
c)
Programming
d)
Algorithmic Thinking
13.

Define ALGORITHM

a)

Breaking a task into smaller tasks.

b)

Looking for similarities and trends.

c)

A sequence of instructions.

d)

Deciding what computer to use.

14.

Define PATTERN RECOGNITION.

a)

A sequence of instructions.

b)

Looking for similarities and trends.

c)

Breaking a task into smaller tasks.

d)

Focusing on what is important and ignoring what is unnecessary.

15.

Define DECOMPOSITION

a)

Breaking a task into smaller tasks.

b)

Looking for similarities and trends.

c)

A sequence of instructions.

d)

Focusing on what is important and ignoring what is unnecessary.

16.
One time through a loop. 
a)
Command
b)
Event
c)
Iteration
d)
Bug
17.

Can this code be written better?

a)

Yes, by using loops (repeat blocks)

b)

No, this is the best way to right this code

18.

Why is decomposition important for your life?

a)

It can help you solve complex problems by breaking the problem into easier chunks

b)

It can help you simplify problems by looking for repeated steps

c)

It can help you simplify complex ideas

d)

It can help you with step by step sets of instructions

19.

Why is Pattern Matching important to Computer Science?

a)

It helps us solve problems that have repeated actions

b)

It helps us write loops

c)

It helps us write algorithms in fewer steps by looping repeated steps.

d)

All of these

20.

What happens if the space bar is pressed?

a)

The computer says you win

b)

The score is set to zero

c)

The Score is changed by 1

21.

Which of the values for "Best Time" and "Time" cause the whole statement to be true?

a)

Best Time = 5 and Time = 14

b)

Best Time = 5 and Time = 7

c)

Best Time = 5 and Time = 4

22.

What will happen if the space bar is not being pressed?

a)

the sprite will turn left

b)

the sprite will turn right

c)

nothing

23.

What will happen if the space bar is being pressed?

a)

the sprite will turn left

b)

the sprite will turn right

c)

nothing

24.

What type of statement is this?

a)

If-then

b)

If-then-else

c)

While Loop

25.

A type of selection that has two options

a)

Boolean

b)

If-then

c)

Flowchart

d)

If-then-else

e)

Else-if

26.

A type of selection that has one option or can be skipped.

a)

Boolean

b)

If-then

c)

Flowchart

d)

If-then-else

e)

Else-if

27.
One time through a loop.
a)
Iteration
b)
Loop
c)
Command
d)
Program
28.
A single step in an algorithm
a)
Debugging
b)
Iteration
c)
Bug
d)
Command
29.

Which condition gets the sprite to put the pen down?

a)

space key pressed?

b)

up arrow pressed?

c)

3<4

d)

mouse down?

30.
A loop that repeats while something is true.
a)
Boolean
b)
Conditional
c)
While Loop
d)
Repeat Until Block
31.
A statement that runs on a certain condition.
a)
Boolean
b)
Conditional
c)
While Loop
d)
Repeat Until Block
32.
A type of data that is either TRUE or FALSE
a)
Boolean
b)
Conditional
c)
While Loop
d)
Repeat Until Block
33.
A loop that repeats until something is true.
a)
Boolean
b)
Conditional
c)
While Loop
d)
Repeat Until Block
34.

Is 25 < 32 ?

a)

True

b)

False

c)

Not Sure

35.

Is 4 < 5

a)

True

b)

False

c)

Not sure

36.

Is 4 > 5

a)

True

b)

False

c)

Not sure

37.

Infinite loops are also called _________ loops.

a)

endless

b)

forever

c)

never ending

38.

George wanted to make a robot that prepared him a bowl of ice cream every day when he got home from work.He noticed that the robot made the same motion over and over again. He decided to loop that behavior in his program. What part of Computational Thinking was she using?

a)

Abstraction

b)

Decomposition

c)

Algorithm

d)

Pattern Matching

39.

What is the purpose of Computational Thinking?

a)

To confuse us

b)

To help us solve only Computer Science problems

c)

To help us with out homework

d)

To help us solve any problem that we are faced with

40.

Breaking a problem down into multiple pieces to make it easier to understand.

a)

Decomposition

b)

Algorithm

c)

Abstraction

d)

Pattern Matching

41.

a placeholder for a piece of information that can change

a)

variable

b)

for loop

c)

define

d)

parameter

42.

True or False:

a)

True

b)

False

43.

True or False:

a)

True

b)

False

44.

True or False

a)

True

b)

False

45.

True or False

a)

True

b)

False

46.

Challenge: True or False

a)

True

b)

False

47.

What would the Sprite say if the Test is set to 10?

a)

My name is Bob

b)

I like Chocolate

c)

Hello

d)

I do not know

48.
What will the cat say when this script is run?
a)
Have a nice day. (only)
b)
Here's some fruit. (only)
c)
Here's some fruit. Have a nice day. 
d)
You can't have any. Have a nice day. 
49.
What will happen when the green flag is clicked?
a)
Make the character spin
b)
Make the ball bounce
c)
Start the game 
d)
Add a sprite
50.
What is the final value of b?
a)
0
b)
9
c)
10
d)
11
51.
What would this code do?
a)
make sprite run when distace is close
b)
broadcast RUN when distance is close
c)
move 10 steps then stop
d)
glitch out
52.

True or False

a)

True

b)

False

53.

True or False

a)

True

b)

False

54.

True or False

a)

True

b)

False

55.
a loop within a loop, an inner loop within the body of an outer one.
a)
Nested Loop
b)
Condition
c)
while loop
d)
For Loop
56.

What will the sprite do?

a)

Turn right

b)

Turn left

57.

Do the variables' values effect the if-then-else statement?

a)

Yes

b)

No

58.

How many degrees will the sprite turn each iteration?

a)

10

b)

57

c)

30

d)

0

59.

Variables have a name and a _______

a)

Value

b)

Number

c)

Word

d)

Duck

60.

Which is not a valid value for a Boolean?

a)

true

b)

false

c)

yes

d)

None of these are correct.

61.
An algorithm is..
a)
.. A set of instructions
b)
... A motion block
c)
... A character
d)
... A loop statement 
62.
A costume is 
a)
A code block
b)
A motion 
c)
A different way a sprite looks
d)
A sound 
63.
You can paint a new costume for a sprite in Scratch?
a)
True
b)
False
64.

What programming concept means following steps in order?

a)

Iteration

b)

Sequence

c)

Selection

65.

What type of language is Scratch?

a)

Procedural

b)

Iterative

c)

Block

d)

Functional

66.

Which word below describes iteration?

a)

Order

b)

Steps

c)

Loop

d)

Decision

67.

Which of the words below describe selection?

a)

Order

b)

Steps

c)

Loop

d)

Decision

68.

What is a character in Scratch called?

a)

Bat

b)

Cat

c)

Sprite

d)

Crab

69.

What is the default Sprite when you open Scratch?

a)

Cat

b)

Dog

c)

Bat

d)

Crab

70.

What group of blocks controls movement of the Sprite?

a)

Control

b)

Sensing

c)

Motion

d)

Look

71.

What it this code an example of?

a)

Iteration

b)

Selection

c)

Sequence

d)

Repetition

72.
Can we give sprite specific location to start from ?
a)
No
b)
Yes
73.
Why won't this code continuously move the sprite when clicking the directional arrows?
a)
The "if" statements need to be inside a "forever" block
b)
The "point in directions" values need to change
c)
The "move 1 steps" commands need to be inside a "forever" block
d)
Need a 2nd "point in direction" block after "move 1 step"
74.
What are the values of Fruit and Citrus after this script is done?
a)
Fruit = 12, Citrus = 17
b)
Fruit = 13, Citrus = 16
c)
Fruit = 12, Citrus = 16
d)
Fruit = 4, Citrus = 12
75.
If you touched Sprite2 seven times what would your score be?
a)
5
b)
0
c)
7
d)
8
76.

you can NOT change the back drop of the stage .

a)

true

b)

false

77.

what are the two axis in scratch

a)

x and y

b)

n and t

c)

j and w

d)

k and somethig

78.

what will the sprite do ?

a)

does it move ?

b)

walk

c)

move

d)

when the green flag is clicked the sprite will move ten steps forword

79.

what is scratch?

a)

a programming language

b)

some application

c)

an educational application

80.
This stack block will make the sprite:
a)
jump
b)
turn
c)
move forward
d)
turn sound down
81.
Which option lets me move to the right?
a)
"change x by 10"
b)
"change y by 10"
c)
"set x to 0"
d)
"set y to 0"
82.
The correct instruction to get scratch to draw a line is ?
a)
"pen down"
b)
"set pen color to"
c)
"pen up"
d)
"change pen color by 10"