What is the output of this code?

COMPSCI 101 - Lab 09 (FA23) Exam 2 Review

Quiz
•
Education
•
University
•
Medium
Aloye Oshotse
Used 49+ times
FREE Resource
41 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Quizizz
42 questions
Math Final Exam

Quiz
•
University
44 questions
BWL

Quiz
•
University
40 questions
Teaching Profession

Quiz
•
University - Professi...
40 questions
Software Engineering Quiz

Quiz
•
University
40 questions
Image Processing

Quiz
•
University
40 questions
Git & GitHub Quiz

Quiz
•
University
40 questions
Reviewer

Quiz
•
University
40 questions
MongoDB

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade