
COMPSCI 101 - Lab 09 (FA23) Exam 2 Review
Authored by Aloye Oshotse
Education
University
Used 49+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
41 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of this code?
8.0
4.0
10.0
7.0
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of this code?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
a = [10, 20, 30, 50]
b = [10, 20, 30, 40]
a = [10, 20, 30, 40]
b = [10, 20, 30, 50]
a = [10, 20, 30, 50]
b = [10, 20, 30, 50]
a = [10, 20, 30, 40]
b = [10, 20, 30, 40]
Answer explanation
Concatenation of a + [50] creates a new list in memory
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will this code output?
20, and then None
Only 20
Only None
None, and then 20
Answer explanation
Every function's default return value is None
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of this code?
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of this code?
4
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of this code?
csisf
reso!
science
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?