
CS1 Unit 8 Review
Authored by Sarah Chapa
Computers
9th - 12th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The ___________ method removes the first occurrence of an element in a list.
append
len
remove
pop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is true about a function?
It is a collection of commands that are given a name.
It is a collection of individual letters, digits, or symbols.
It is a variable that stores letters, numbers, and words, and is not used for calculations
It is a data structure that holds many pieces of data at the same time.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following code:
What is output when the user enters 80?
Values above 80: 5
Values above 80: 9
Values above 80: 7
Values above 80: 2
4.
FILL IN THE BLANK QUESTION
20 sec • 1 pt
Consider the following code:
What is the output?
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following can be used to create a list that has some initial values?
An element
An index
The insert method
An initializer list
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use for loops with lists?
We can only use for loops with lists because while loops don’t work
For loops let us access every element of a list
For loops are faster than while loops for lists
We don’t; only while loops should be used with lists
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The ____________ method can be used to add elements in the middle of the list.
pop
insert
extend
append
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?