wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

BJC AP CSP Unit 3 Exam Review

Total questions: 27

Worksheet time: 3mins

Name
Class
Date
1.

The robot starts at the bottom right, facing north. Which sequence of steps would move the sprite to where it is now?

a)

Turn left, move forward, turn right

b)

Turn left, move forward, turn right, move forward

c)

Move forward, turn right, move forward

d)

Turn right, move forward, turn left, move forward

2.

What is shopping list[6]?

a)

None of these, error, etc.

b)

milk

c)

chips

d)

cereal

3.

point(x,y) takes in two numbers & reports a list, [x,y]. What is the output, ignoring the words?

a)

[-50,20], [10, 120], [30,20]

b)

[-50], [10], [30]

c)

[-50, 10, 30]

d)

-50, 10, 30

4.

What is computer vision?

a)

where we see technological advancement in the future

b)

teaching computers how to "see" with software that interprets and detects

c)

the study of monitor displays

d)

the automation of jobs

5.

A global and a local variable have the same name. Will changing the value of the global variable affect the local one?

a)

Yes

b)

No

6.

Where will the sprite end up after the code above is executed?

a)

A

b)

B

c)

C

d)

D

7.

Which brick wall could not be drawn by the block above?

a)

A

b)

B

c)

C

d)

D

8.

Which script(s) will allow the sprite to escape the maze?

a)

Script A, only

b)

Script B, only

c)

Both scripts

d)

Neither script

9.

What is output when the code above is run?

a)

21

b)

22

c)

23

d)

Nothing gets displayed; this is an infinite loop

10.

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)

A, C, B

b)

B, A, C

c)

C, A, B

d)

None of the above

11.

The block above escapes the zigzag shown. What code change would allow it to escape a zigzag of any size?

a)

Swap the rotate left and rotate right

b)

Use a nested repeat block

c)

Replace 3 with the "steps" parameter

d)

No change; the block can already escape any zigzag!

12.

The reporter block above is an example of:

a)

A, only

b)

A and C, only

c)

B and C, only

d)

A, B, and C

13.
a)

It reports 3.89

b)

It reports the list ["Tiffany", 3.92]

c)

It reports the list [3.89, 3.92, 3.78]

d)

It returns an error

14.

a)

The list ["Tiffany", "Nancy"]

b)

A list with 2 sublists: [["Tiffany, 3.92"], ["Nancy, 3.78"]]

c)

The string "Tiffany Nancy"

d)

An error, since the user forgot the input in "name of student"

15.

Which of the following is not an example of crowdsourcing?

a)

Waze: A traffic app that asks users to report traffic incidents to show to other users

b)

Fiverr: Allows users to post small tasks for other users to complete for pay, such as downloading images

c)

Deep Blue: A chess-playing computer that successfully beat human chess grandmaster players

d)

LEGO Ideas: A website where users submit their own LEGO creations to be voted on; top voted sets get made by LEGO

16.

Which of the following is the best definition of machine learning?

a)

a computer programmed to solve complex math equations

b)

a computer that improves over time from experience and trial & error

c)

a computer programmed to search online academic databases

d)

a computer that can follow chess strategies written by grandmasters

17.

Which of the following would most likely be a harmful effect of computing innovations?

a)

facial recognition software are not trained for darker faces

b)

Alexa supports independence of the elderly by providing reminders

c)

robotic teachers build language skills in young students

d)

self-driving cars reduce need for human taxi drivers, causing unemployment

18.

Which statement about the script and two reporter blocks below is true?

a)

block A reports 5, block B reports "Joy Buolamwini"

b)

block A reports 10, block B reports "Joy Buolamwini"

c)

block A reports 5, block B reports [Joy, Buolamwini]

d)

block A reports 10, block B reports [Joy, Buolamwini]

19.

Which statement about the script and two reporter blocks below is true?

a)

block C reports "J", block D reports an error

b)

block C reports "Joy", block D reports 2

c)

block C reports "Joy", block D reports an error

d)

block C reports [Joy], block D reports 2

20.

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.)

a)

2

b)

6

c)

12

d)

17

21.

What combination of characters will be displayed?

a)

a

b)

9c

c)

9

d)

-1d

22.

What will be displayed?

a)

2

b)

4

c)

9

d)

Error

23.

Select two answers:

Which of the following blocks is an example of an Abstract Data Type (ADT)?

a)

A "point" block

b)

A "pinwheel" block

c)

A "contact" block

d)

A "predicate" block

24.

(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?

a)

(1, 5)

b)

(1, 4)

c)

(1, 1)

d)

(1, 2)

25.

Which of the following blocks is an example of an Abstract Data Type (ADT)?

a)

A "contact item"

b)

A "contact list"

c)

A list of words

d)

the "answer" variable after asking user for input

26.

Abstraction in a program:

a)

hides detail

b)

makes it more complex

c)

makes it harder to read

d)

makes it run faster

27.

Bone marrows make blood cells. Why bones?

a)

To hide from the sun

b)

There's more space

c)

To help the cells into round shapes

d)

We don't know yet