BJC AP CSP Unit 3 Exam Review (In-Class)

BJC AP CSP Unit 3 Exam Review (In-Class)

Assessment

Flashcard

Computers, Education

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

12 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is shopping list[6]?

Back

chips

Answer explanation

AP Exam pseudocode:

item 6 of "shopping list"

2.

FLASHCARD QUESTION

Front

What is the output of point(x,y) which takes in two numbers & reports a list, [x,y], ignoring the words? Options: [-50,20], [10, 120], [30,20]; [-50], [10], [30]; [-50, 10, 30]; -50, 10, 30

Back

-50, 10, 30

Answer explanation

The last three choices are not identical. Square brackets, [], denote a list.

3.

FLASHCARD QUESTION

Front

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

Back

No

Answer explanation

Even if they have the same name.

Global variable: When you click "Make a variable" button in the Variables palette.

Local variable: A script variable or a paramter.

4.

FLASHCARD QUESTION

Front

Where will the sprite end up after the code above is executed? Options: A, B, C, D

Back

A

Answer explanation

The curly brackets {} denote what is repeated before the next instruction runs. So, the first repeat has to finish before the second repeat starts.

5.

FLASHCARD QUESTION

Front

Which brick wall could not be drawn by the block above? A, B, C, D

Back

D

Answer explanation

Check each random reporter by itself, if possible. Can only draw 2-4 full bricks per row.

6.

FLASHCARD QUESTION

Front

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

Back

Both scripts

Answer explanation

Write things down on paper. They work the same way.

7.

FLASHCARD QUESTION

Front

What is output when the code above is run? Options: 21, 22, 23, Nothing gets displayed; this is an infinite loop

Back

22

Answer explanation

Pen/pencil to draw trace table.

5, 6, 7, 8, 9, 10, 13, 16, 19, 22

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?