NEW
Font size
WorksheetsBJC AP CSP U1 Quiz1 (labs 1 and 2)
Total questions: 20
Worksheet time: 1hrs 12mins
The area where you can see what happens when your code is run is called...
the output area
the stage
the sprite
the platform
The characters and images that you can code to perform various actions in your program are called
springs
emojis
algorithms
sprites
The area where you write your code in Snap is known as the...
scripting area
coding section
block area
programming square
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?
Snap isn't working correctly and you need to contact their developers
The hat block/event handler requires the sprite to be clicked for the code to run
The hat block/event handler requires the stage to be clicked for the code to run
The hat block/event handler requires the space bar to be clicked for the code to run
Why are the blocks in this image called 'hat blocks'?
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
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
Because these blocks can't be programmed for every sprite
Because people typically own multiple hats and there are several different types of this block
The blocks inside of the forever block run continuously until...
the code is deleted
the sprite is removed
the red stop sign is clicked
This block is found in which category?
Motion
Control
Pen
Variable
This script makes a flower garden. Which block in this script would make the program switch from one petal to another petal?
repeat
go to random position
stamp
next costume
What is a sprite in SNAP?
An object on the stage that the code can manipulate (move, show, say)
A block of code that performs a specific function.
Another word for costume, an image that can be imported and shown.
Which block allows a sprite to alert another sprite of an event?
Say
Broadcast
Touching
Costumes
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?
The transparency of a sprite would typically be changed by the _________ block.
change costume
go to
ghost effect
change size by
A _________ is an ordered set of items as shown in the image.
list
string
sprite
function
The items in a list are ___________s. A ___________ is a sequence of characters (letters, digits, punctuation, etc.)
reporter
command
function
string
When the 'who' command block is called, what instructions are given to the computer?
report a random item from a list containing listened to, loves, ran away from, helped and is in a band with.
report the last item from a list containing Hannah, Jake, Senora, Ms. C and my cat.
report a random item from a list containing Hannah, Jake, Senora, Ms. C and my cat.
report the joining of the 'who, does what, & who' command blocks.
What is pattern recognition?
Breaking down a complex problem into smaller problems
Looking for similarities among and within problems
Building models from patterns
What is a flowchart?
A visual representation of an algorithm.
A diagram that shows abstraction.
A series of shapes.
A school database has lots of information on students, the data manager needs to use abstraction. What data should she leave out?
Age
Guardian's phone numbers
Classes
Eye colour
Identifying the steps involved in solving a problem
Abstraction
Decomposition
Pattern Recognition
Algorithmic Thinking
Which of the following is done by decomposition?
Ensures that only 1 person can work on the problem
Disregards non-essential information
Breaks the problem down into smaller tasks
