
AP CSP 3.10 (Lists)

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Herman Galioulline
Used 136+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is displayed as a result of executing the code segment?
1 3 5
5 3 1
100 300 500
500 300 100
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
3
4
9
12
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
count1 = 2, count2 = 2
count1 = 2, count2 = 3
count1 = 3, count2 = 2
count1 = 5, count2 = 0
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Shoppers at a mall were asked whether they preferred wearing gloves or mittens in cold weather. Shoppers’ preferences were stored in the list voteList as strings, with the string "Gloves" representing a preference for gloves and the string "Mittens" representing a preference for mittens.
The following code segment is intended to traverse the list and display the number of shoppers who chose gloves and the number of shoppers who chose mittens.
Which of the following should replace <MISSING CODE> so that the code segment works as intended?
IF(vote ≤ LENGTH(voteList))
FOR EACH vote IN voteList
REPEAT LENGTH(voteList) TIMES
REPEAT UNTIL(vote > LENGTH(voteList))
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
APPEND(evenList, i)
i ← i + 2
i ← i + 2
APPEND(evenList, i)
APPEND(evenList, 2 * i)
i ← i + 1
i ← i + 1
APPEND(evenList, 2 * i)
Similar Resources on Wayground
10 questions
Quiz List HTML

Quiz
•
11th Grade
10 questions
Comp Sci Unit 3 #9

Quiz
•
11th Grade
10 questions
Python lists and tuples

Quiz
•
12th Grade
10 questions
Grafičko sučelje - Tkinter

Quiz
•
7th - 9th Grade
10 questions
HTML Basics

Quiz
•
7th - 10th Grade
10 questions
Web Design: Basics of HTML and CSS

Quiz
•
9th - 12th Grade
10 questions
Introduction to Programming

Quiz
•
2nd - 10th Grade
10 questions
HTML Lists Tag

Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade