NEW
Font size
WorksheetsAP CSP Unit 3
Total questions: 15
Worksheet time: 9mins
The value that is assigned in any list is considered...
Element
Index
String
Integer
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
What does append mean?
add an element to the back of the list
add an element to the front of the list
remove an element from a list
insert an element in the list
What is an index?
the postion number of an element in a list
another name for an item in a list
What element is in index 3?
grape
pineapple
cherry
strawberry
What index is pineapple in?
3
grape
pineapple
4
Which of the following is NOT a data type?
number
boolean
command
string
Which of the following variables holds a true or false value?
String
int
boolean
float
What will the following algorithm display?
a ← 13
a ← 17
a ← a+1
DISPLAY(a)
13
17
18
19
An error in a program that prevents the program from running as expected
onEvent
Bug
Moth
Fly in the Ointment
Kobe is working on a basketball game and is experimenting with the variables he'll use for the game. His code looks like this:
1 0 3 3
1 0 3 1
1 0 3 4
1 0 4 3
1 0 1 3
