Font size
WorksheetsBJC AP CSP Unit 3 Exam Review
Total questions: 27
Worksheet time: 3mins
The robot starts at the bottom right, facing north. Which sequence of steps would move the sprite to where it is now?
Turn left, move forward, turn right
Turn left, move forward, turn right, move forward
Move forward, turn right, move forward
Turn right, move forward, turn left, move forward
What is shopping list[6]?
None of these, error, etc.
milk
chips
cereal
point(x,y) takes in two numbers & reports a list, [x,y]. What is the output, ignoring the words?
[-50,20], [10, 120], [30,20]
[-50], [10], [30]
[-50, 10, 30]
-50, 10, 30
What is computer vision?
where we see technological advancement in the future
teaching computers how to "see" with software that interprets and detects
the study of monitor displays
the automation of jobs
A global and a local variable have the same name. Will changing the value of the global variable affect the local one?
Yes
No
Where will the sprite end up after the code above is executed?
A
B
C
D
Which brick wall could not be drawn by the block above?
A
B
C
D
Which script(s) will allow the sprite to escape the maze?
Script A, only
Script B, only
Both scripts
Neither script
What is output when the code above is run?
21
22
23
Nothing gets displayed; this is an infinite loop
Recall the Brick Wall lab. Which of the following lists the blocks in order from highest level of abstraction to lowest level? Be careful!
A, C, B
B, A, C
C, A, B
None of the above
The block above escapes the zigzag shown. What code change would allow it to escape a zigzag of any size?
Swap the rotate left and rotate right
Use a nested repeat block
Replace 3 with the "steps" parameter
No change; the block can already escape any zigzag!
The reporter block above is an example of:
A, only
A and C, only
B and C, only
A, B, and C
It reports 3.89
It reports the list ["Tiffany", 3.92]
It reports the list [3.89, 3.92, 3.78]
It returns an error
The list ["Tiffany", "Nancy"]
A list with 2 sublists: [["Tiffany, 3.92"], ["Nancy, 3.78"]]
The string "Tiffany Nancy"
An error, since the user forgot the input in "name of student"
Which of the following is not an example of crowdsourcing?
Waze: A traffic app that asks users to report traffic incidents to show to other users
Fiverr: Allows users to post small tasks for other users to complete for pay, such as downloading images
Deep Blue: A chess-playing computer that successfully beat human chess grandmaster players
LEGO Ideas: A website where users submit their own LEGO creations to be voted on; top voted sets get made by LEGO
Which of the following is the best definition of machine learning?
a computer programmed to solve complex math equations
a computer that improves over time from experience and trial & error
a computer programmed to search online academic databases
a computer that can follow chess strategies written by grandmasters
Which of the following would most likely be a harmful effect of computing innovations?
facial recognition software are not trained for darker faces
Alexa supports independence of the elderly by providing reminders
robotic teachers build language skills in young students
self-driving cars reduce need for human taxi drivers, causing unemployment
Which statement about the script and two reporter blocks below is true?
block A reports 5, block B reports "Joy Buolamwini"
block A reports 10, block B reports "Joy Buolamwini"
block A reports 5, block B reports [Joy, Buolamwini]
block A reports 10, block B reports [Joy, Buolamwini]
Which statement about the script and two reporter blocks below is true?
block C reports "J", block D reports an error
block C reports "Joy", block D reports 2
block C reports "Joy", block D reports an error
block C reports [Joy], block D reports 2
REMOVE() deletes an item from a list & returns the item being deleted.
What number will be displayed?
(Very hard even with pen & paper; impossible without.)
2
6
12
17
What combination of characters will be displayed?
a
9c
9
-1d
What will be displayed?
2
4
9
Error
Select two answers:
Which of the following blocks is an example of an Abstract Data Type (ADT)?
A "point" block
A "pinwheel" block
A "contact" block
A "predicate" block
(x,y) is (row, column). Top left corner is (5,1), bottom right (1,5)
After running the script, in which square will the robot end up at?
(1, 5)
(1, 4)
(1, 1)
(1, 2)
Which of the following blocks is an example of an Abstract Data Type (ADT)?
A "contact item"
A "contact list"
A list of words
the "answer" variable after asking user for input
Abstraction in a program:
hides detail
makes it more complex
makes it harder to read
makes it run faster
Bone marrows make blood cells. Why bones?
To hide from the sun
There's more space
To help the cells into round shapes
We don't know yet
