wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

BJC AP CSP U1 Quiz1 (labs 1 and 2)

Total questions: 20

Worksheet time: 1hrs 12mins

Name
Class
Date
1.

The area where you can see what happens when your code is run is called...

a)

the output area

b)

the stage

c)

the sprite

d)

the platform

2.

The characters and images that you can code to perform various actions in your program are called

a)

springs

b)

emojis

c)

algorithms

d)

sprites

3.

The area where you write your code in Snap is known as the...

a)

scripting area

b)

coding section

c)

block area

d)

programming square

4.

In the program pictured here, the programmer expects Alonzo the fish to go to a random position when the green flag is clicked but he is not moving. Why not?

a)

Snap isn't working correctly and you need to contact their developers

b)

The hat block/event handler requires the sprite to be clicked for the code to run

c)

The hat block/event handler requires the stage to be clicked for the code to run

d)

The hat block/event handler requires the space bar to be clicked for the code to run

5.

Why are the blocks in this image called 'hat blocks'?

a)

Because these blocks can sit only on top of a script (as a way to start the script) and nothing can be connected above them

b)

Because these blocks can sit only on bottom of a script (as a way to end the script) and nothing can be connected below them

c)

Because these blocks can't be programmed for every sprite

d)

Because people typically own multiple hats and there are several different types of this block

6.

The blocks inside of the forever block run continuously until...

a)

the code is deleted

b)

the sprite is removed

c)

the red stop sign is clicked

7.

This block is found in which category?

a)

Motion

b)

Control

c)

Pen

d)

Variable

8.

This script makes a flower garden. Which block in this script would make the program switch from one petal to another petal?

a)

repeat

b)

go to random position

c)

stamp

d)

next costume

9.

What is a sprite in SNAP?

a)

An object on the stage that the code can manipulate (move, show, say)

b)

A block of code that performs a specific function.

c)

Another word for costume, an image that can be imported and shown.

10.

Which block allows a sprite to alert another sprite of an event?

a)

Say

b)

Broadcast

c)

Touching

d)

Costumes

11.

Lets program the start of a Knock-knock joke. Using Broadcast and when I receive blocks, Which is the correct way to program the first 2 lines?

a)
b)
c)
d)
12.

The transparency of a sprite would typically be changed by the _________ block.

a)

change costume

b)

go to

c)

ghost effect

d)

change size by

13.

A _________ is an ordered set of items as shown in the image.

a)

list

b)

string

c)

sprite

d)

function

14.

The items in a list are ___________s. A ___________ is a sequence of characters (letters, digits, punctuation, etc.)

a)

reporter

b)

command

c)

function

d)

string

15.

When the 'who' command block is called, what instructions are given to the computer?

a)

report a random item from a list containing listened to, loves, ran away from, helped and is in a band with.

b)

report the last item from a list containing Hannah, Jake, Senora, Ms. C and my cat.

c)

report a random item from a list containing Hannah, Jake, Senora, Ms. C and my cat.

d)

report the joining of the 'who, does what, & who' command blocks.

16.

What is pattern recognition?

a)

Breaking down a complex problem into smaller problems

b)

Looking for similarities among and within problems

c)

Building models from patterns

17.

What is a flowchart?

a)

A visual representation of an algorithm.

b)

A diagram that shows abstraction.

c)

A series of shapes.

18.

A school database has lots of information on students, the data manager needs to use abstraction. What data should she leave out?

a)

Age

b)

Guardian's phone numbers

c)

Classes

d)

Eye colour

19.

Identifying the steps involved in solving a problem

a)

Abstraction

b)

Decomposition

c)

Pattern Recognition

d)

Algorithmic Thinking

20.

Which of the following is done by decomposition?

a)

Ensures that only 1 person can work on the problem

b)

Disregards non-essential information

c)

Breaks the problem down into smaller tasks