
Python Quiz 6
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Nguyen Duong
FREE Resource
Enhance your content in a minute
70 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code? b=[2,3,4,5] a=list(filter(lambda x:x%2,b)) print(a)
[2,4]
[]
[3,5]
Invalid arguments for filter function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code? lst=[3,4,6,1,2] lst[1:2]=[7,8] print(lst)
[3, 7, 8, 6, 1, 2]
Syntax error
[3,[7,8],6,1,2]
[3,4,6,7,8]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code? a=[1,2,3] b=a.append(4) print(a) print(b)
[1,2,3,4]
[1,2,3,4]
Syntax error
[1,2,3]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code? >>> a=[14,52,7] >>>> b=a.copy() >>> b is a
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code? a=[13,56,17] a.append([87]) a.extend([45,67]) print(a)
[13, 56, 17, [87], 45, 67]
[13, 56, 17, 87, 45, 67]
[13, 56, 17, 87,[ 45, 67]]
[13, 56, 17, [87], [45, 67]]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following piece of code? a=list((45,)*4) print((45)*4) print(a)
180
[(45),(45),(45),(45)]
(45,45,45,45)
[45,45,45,45]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code? lst=[[1,2],[3,4]] print(sum(lst,[]))
[3],[7]
[1,2,3,4]
Error
[10]
Create a free account and access millions of resources
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?
Similar Resources on Wayground
65 questions
ASIA Midterm Reviewer
Quiz
•
University
75 questions
APCS Principles Practice Exam
Quiz
•
8th Grade - University
72 questions
Server, Konsola, Virtual, AD, DHCP, DNS, NAT, IIS, FTP
Quiz
•
7th Grade - Professio...
69 questions
CEA201
Quiz
•
University
66 questions
Computing Fundamentals Prefinal Exam
Quiz
•
University
68 questions
SUBNETTING
Quiz
•
University - Professi...
66 questions
NHẬP MÔN CNTT 2
Quiz
•
University
65 questions
Desain Jaringan Komputer Quiz
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
