Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

BJC AP CSP T1 Final Exam Pt2

Total questions: 20

Worksheet time: 1hrs 14mins

Name
Class
Date
1.

Which block in this script shows use of abstraction?

a)

set pen color to

b)

circle; line weight

c)

point in direction

d)

repeat (15)

2.

In this procedure, what difference does the parameter make for each circle that is drawn?

a)

it allows the circles to be drawn in different places on the stage

b)

it allows the number of steps moved to change making a larger circle

c)

it allows the color of the line to change

d)

it allows the thickness of the line to change

3.

A bunch of blocks clicked together is best known as a...

a)

script

b)

procedure

c)

loop

d)

abstraction

4.

A sequence of characters (ex. letters, digits, punctuation, etc.) is known as...

a)

an algorithm

b)

a list

c)

a string

d)

an integer

5.

A named sequence of instructions that may take inputs(parameters) and may report a value is known as a...

a)

algorithm

b)

procedure

c)

string

d)

variable

6.

The input value of a parameter that can be different each time the procedure block is run is known as the...

a)

argument

b)

charge

c)

iterator

d)

pseudocode

7.

Select ALL of the statements that are true about this script:

a)

it contains a nested conditional

b)

it contains a local variable

c)

it contains iteration

d)

it contains a global variable

e)

it contains selection

8.

Is the 'or statement' seen in this script an exclusive or inclusive 'or statement'?

a)

exclusive

b)

inclusive

9.

The user responds that they would like to add course number '5'. After the program checks whether the answer is greater than 6 or less than 1, what is the next thing that will happen?

a)

the program will check to see if course #5 is on the 'reg courses' list

b)

course #5 will be added to the 'reg courses' list

c)

the 'course list' will appear

d)

the user will be prompted to 'try again'

10.

An algorithm written in a human language is known as...

a)

sequence

b)

a script

c)

pseudocode

d)

none of the above

11.

Select ALL of the blocks that show use of selection:

a)
b)
c)
d)
12.

If this student's course grade is 100, what will the output be when this script is executed?

a)

Please enter a valid course grade

b)

Congrats! You are invited to the awards ceremony!

c)

error

d)

With hard work, you will be invited to the next awards ceremony!

13.

In this procedure, the input for the number of branches to be drawn is also known as the...

a)

argument

b)

sprite

c)

parameter

d)

command

14.

What will the output be when this script is executed?

a)

The sprite will say the numbers 1 - 10, one number at a time

b)

The sprite will say 'i' once

c)

The sprite will say the numbers 1 - 10, all at one time

d)

The sprite will say 'i' 10 times

15.

When this script is executed, which student(s) will be selected for random COVID testing?

a)

Martin Payne & Ruth Gainse

b)

Blue Jackson

c)

Kim Fields & Lashon Lewis

d)

Edgar Allen

16.

What is the length of the string in the 3rd item in this list?

a)

13

b)

11

c)

6

d)

14

17.

What is located at index 5 of the 7th item in this list?

a)

a space

b)

i

c)

d

d)

t

18.

What will the output be when this script is executed?

a)

The sprite will say all of the names on the list

b)

The sprite will say class roster

c)

The sprite will say 12

d)

The sprite will say 1

19.

Pictures that can be "worn" by a sprite are known as...

a)

clothes

b)

images

c)

exports

d)

costumes

20.

WE ARE....

a)

ROYALS!

b)

Don't even think about choosing this option

c)

Seriously, if you choose this option I may lose my mind

d)

No really, PLEASE take advantage of this free point and don't choose this answer