Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

App Creator Pre-Test

Total questions: 50

Worksheet time: 47mins

Name
Class
Date
1.

What is an ordered set of instructions used to carry out a task?

a)

A conditional statement

b)

A bug

c)

An algorithm

d)

steps

2.

___________ is a command that performs different actions depending on whether a condition is true or false

a)

Interface

b)

Algorithm

c)

Conditional Statement

d)

Event Handler

3.
What is a one or zero called in coding?
a)
Byte
b)
Code
c)
Switch
d)
Bit
4.
What is a Function?
a)
A code that uses blocks
b)
A sequence of commands that can be stored
c)
An activity for a command to do soemthing
5.
What is a Variable?
a)
A container that can store information
b)
A compress command that is inapplicable
c)
A false condition that is use to code
6.
Persistence is...
a)
Trying again and again , even when something is very hard.
b)
Assisting someone with a task.
c)
Giving up on a task.
d)
An error in a program.
7.
An action that causes something to happen.
a)
A loop.
b)
A program.
c)
An event.
d)
A command.
8.

When you tell the computer to repeat a command or step over and over and over and over and over and over and over and over and over and... oh yeah, over again as many times as you tell to repeat.

a)

Deja Vu

b)

Loop

c)

Repeating

d)

Being annoying

9.

A piece of code with multiple steps that have been simplified down to one command which you can easily call over and over again.

a)

digital footprint

b)

run program

c)

abstraction

d)

function

10.
In an IF...THEN statement, the THEN part of the code is followed when the IF condition is ___________ .
a)
true
b)
false
c)
either true or false
d)
neither true nor false
11.
In an IF...THEN...ELSE statement, the ELSE part of the code is followed when the IF condition is ___________ .
a)
true
b)
false
c)
either true or false
d)
neither true nor false
12.

The order of commands carried out by a computer exactly as they are written to run properly is called a

a)

Sequence

b)

Bugs

c)

Syntax

d)

Debugging

13.

A loop that continues to repeat while a condition is true.

a)

while loop

b)

until loop

c)

for loop

d)

bug

14.

To add code in a function so the program knows what to do when the function is called.

a)

define function

b)

call function

c)

variable

d)

pattern matching

15.

A placeholder for a piece of information that can change.

a)

variable

b)

call function

c)

event

d)

bug

16.

Select the correct solution.

a)
b)
c)
d)
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.

What shape does this code make?

a)

Rectangle

b)

Triangle

c)

Square

d)

Circle

19.

Look at the puzzle and the code below. How would you debug 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

20.

Look at the puzzle. How would you debug 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

21.

There are many possible ways to interpret an instruction written in a programming language.

a)

True

b)

False

22.

Two functions in a single program can have different names but contain identical code.

a)

True

b)

False

23.

Finding and fixing problems in an algorithm or program.

a)

Debugging

b)

Bug

c)

Error

d)

Programing

24.

TRUE or FALSE: Test and change your strategy often. Don’t be afraid to try solutions before you know that they are perfect.

a)

TRUE

b)

FALSE

25.

What does this code do?

a)

Moves forward 1 time

b)

Moves forward forever

c)

Moves forward 5 times

d)

Moves left

26.

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

27.

Which algorithm below will allow the Farmer to clear the pile?

a)

Move forward twice, remove dirt 10 times

b)

Move forward once, remove dirt 5 times

c)

Move forward once, remove dirt 10 times

d)

Remove dirt 10 time, move backwards once

28.

The following code is drawing shapes. When the program runs, what shapes and how many of the shape will be drawn?

a)

One square

b)

Triangle

c)

Two squares

d)

Two triangles

29.

What completes the following shape?

a)

Move forward by 100px, turn right by 120dg, move forward by 100px

b)

Turn right by 120dg, move forward by 100px, Move forward by 100px,

c)

Turn right by 120dg, turn right by 120px, move forward by 100px

d)

Move forward by 100px, move forward by 100px, turn right by 120dg, move forward by 100px

30.
What will this program do when it is running?
a)
A. Move forward 5 times and then turn left 5 times
b)
B. Turn left and move forward 5 times
c)
C. Turn left 5 times and then move forward 5 times
d)
D. Move forward and turn left 5 times
31.
The smallest unit of data stored in an image file is called:
a)
Pixels
b)
Resolution
c)
Alpha
d)
Bitmap.
32.

What Does Pixel Stand for?

a)

Image

b)

Plain Element

c)

Picture Element

d)

Picture/Images X-element Language

33.

Which of these blocks creates a loop?

a)
b)
c)
34.

When deciding which way to code the sprite,

a)

remember, it's the the way the sprite is facing that determines the direction to choose.

b)

remember it's the same as the way you are facing that determines the direction to choose.

35.

The main purpose of a variable, is (choose all answers that apply)

a)

So you can draw circles and change colors.

b)

To have to enter code into the variable and then it will be throughout your program wherever you put the variable.

c)

So you don't have to change maybe hundreds of pieces of code, you can do it with only one change in the variable

d)

To help you find sprites.

36.

Every time you run the program the color changes

a)
b)
c)
37.

The common programming structure that implements "conditional statements"

a)

Bug

b)

Debugging

c)

If-Statement

38.
Which algorithm will get the bird to the pig?
a)
Forward
Turn Left
Forward
Forward
b)
Turn Left
Forward
Forward
Forward
c)
Forward
Turn right
Forward
Forward
39.
Which algorithm will get the bird to the pig?
a)
Forward
Turn Left
Forward
Turn Right
Forward
b)
Forward
Forward
Turn Left
Forward
Forward
c)
Forward
Turn Right
Forward
Turn Left
Forward
d)
Turn Left
Forward
Forward
Turn Right
40.
Which algorithm will draw the triangle correctly?
a)
Forward
Turn Left 90º
Forward
Turn Left 90º
Forward
b)
Turn Right 120º
Forward
Turn Right 120º
Forward
c)
Forward
Turn Right 120º
Forward
Turn Right 120º
Forward
d)
Forward
Turn Right 90º
Forward
Turn Right 90º
Forward
41.
In coding, what is a bug?
a)
EW! Bugs are yucky!
b)
An error in your code.
c)
A working algorithm
d)
Code that repeats over and over again
42.
Which code will draw a square?
a)
Move forward
Turn Right 90º
Move forward
Turn Right 90º
Move Forward
Turn Right 90º
Move Forward
b)
Move Forward
Turn Left 90º
Move Forward
Turn Left 90º
Move Forward
Turn Left 120º
c)
Turn Right 60º
Move Forward
Turn Left 90º
Move Forward
Move Forward
Move Forward
d)
Move Forward
Move Forward
Move Forward
Move Forward
Turn Right 90º
43.

How many times will the bee collect nectar?

a)

5

b)

7

c)

8

d)

6

44.

What will happen when you click run?

a)

The bird will run into TNT.

b)

The bird will end up 1 step short of the pig.

c)

The bird will make it to the pig.

45.

What will be drawn when you click "Run"?

a)

a square

b)

a single line

c)

an equilateral triangle

46.

What will happen when you press "Run"?

a)

BB-8 will not move forward.

b)

BB-8 will move forward and collect all the scrap metal.

c)

BB-8 will only move forward 1 space.

47.

How many times will BB-8 need to move forward to collect all the scrap metal?

a)

3

b)

4

c)

5

48.

BB-8 will move forward enough spaces to collect all the space junk.

a)

True

b)

False

49.

Looking at the puzzle, what happens when the program runs?

a)

Option A

b)

Option B

c)

Option C

d)

Option D

50.
a)

Option A

b)

Option B

c)

Option C

d)

Option D