WorksheetsBJC AP CSP T1 Final Exam Pt2
Total questions: 20
Worksheet time: 1hrs 14mins
Which block in this script shows use of abstraction?
set pen color to
circle; line weight
point in direction
repeat (15)
In this procedure, what difference does the parameter make for each circle that is drawn?
it allows the circles to be drawn in different places on the stage
it allows the number of steps moved to change making a larger circle
it allows the color of the line to change
it allows the thickness of the line to change
A bunch of blocks clicked together is best known as a...
script
procedure
loop
abstraction
A sequence of characters (ex. letters, digits, punctuation, etc.) is known as...
an algorithm
a list
a string
an integer
A named sequence of instructions that may take inputs(parameters) and may report a value is known as a...
algorithm
procedure
string
variable
The input value of a parameter that can be different each time the procedure block is run is known as the...
argument
charge
iterator
pseudocode
Select ALL of the statements that are true about this script:
it contains a nested conditional
it contains a local variable
it contains iteration
it contains a global variable
it contains selection
Is the 'or statement' seen in this script an exclusive or inclusive 'or statement'?
exclusive
inclusive
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?
the program will check to see if course #5 is on the 'reg courses' list
course #5 will be added to the 'reg courses' list
the 'course list' will appear
the user will be prompted to 'try again'
An algorithm written in a human language is known as...
sequence
a script
pseudocode
none of the above
Select ALL of the blocks that show use of selection:
If this student's course grade is 100, what will the output be when this script is executed?
Please enter a valid course grade
Congrats! You are invited to the awards ceremony!
error
With hard work, you will be invited to the next awards ceremony!
In this procedure, the input for the number of branches to be drawn is also known as the...
argument
sprite
parameter
command
What will the output be when this script is executed?
The sprite will say the numbers 1 - 10, one number at a time
The sprite will say 'i' once
The sprite will say the numbers 1 - 10, all at one time
The sprite will say 'i' 10 times
When this script is executed, which student(s) will be selected for random COVID testing?
Martin Payne & Ruth Gainse
Blue Jackson
Kim Fields & Lashon Lewis
Edgar Allen
What is the length of the string in the 3rd item in this list?
13
11
6
14
What is located at index 5 of the 7th item in this list?
a space
i
d
t
What will the output be when this script is executed?
The sprite will say all of the names on the list
The sprite will say class roster
The sprite will say 12
The sprite will say 1
Pictures that can be "worn" by a sprite are known as...
clothes
images
exports
costumes
WE ARE....
ROYALS!
Don't even think about choosing this option
Seriously, if you choose this option I may lose my mind
No really, PLEASE take advantage of this free point and don't choose this answer
