
4.18 List Written Assessment
Authored by Joe Duncan
Computers
10th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following would not likely be best solved with a list?
A program to keep track of the names of this year's chorus singers
A program to draw circles
A program to find a bicycle that meets the users specifications
A program to keep track of the last year's AP CSP exam scores by student
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Use the following code segment to answer these questions:
aList ← [0, 1, 2, 3, 6]
FOR EACH item IN aList
{
item ← item MOD 2
}
Assume the index of the first item in this list is 1.
How many items are in aList after this code segment?
5
4
6
1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Use the following code segment to answer these questions:
aList ← [0, 1, 2, 3, 6]
FOR EACH item IN aList
{
item ← item MOD 2
}
Assume the index of the first item in this list is 1.
What is the new value of aList[3] after this code segment?
2
0
5
-1
4.
MATH RESPONSE QUESTION
2 mins • 1 pt
When this code executes, what is the maximum number of values that can be stored in test1?
Mathematical Equivalence
OFF
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Identify the primary programming structures of this code segment. Select all that apply.
Sequential
Iteration
Selection
Function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the values stored in list2 after this code segment executes?
6, 11, 16, 21
6, 7, 8, 9
0, 0, 0, 0
5, 10, 15, 20
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify by name or by example the type of loop that traverses a list and performs actions but does not modify or change the original values stored in the list.
FOREVER Loop
FOR EACH Loop
REPEAT n TIMES Loop
REPEAT UNTIL Loop
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?