
Python Programming Quiz
Quiz
•
Information Technology (IT)
•
12th Grade
•
Practice Problem
•
Hard
Manjunatha M
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types is mutable in Python?
String
Tuple
List
Frozenset
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet? def func(x=[]): x.append(1) return x print(func()) print(func())
[1] [1]
[1] [1, 1]
[1, 1] [1, 1]
Syntax Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? x = [1, 2, 3, 4] y = x y.append(5) print(x)
[1, 2, 3, 4]
[1, 2, 3, 4, 5]
[1, 2, 3, 4, 5, 5]
[5]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet? print("Hello, World!"[::-1])
"dlroW ,olleH"
"Hello, World!"
Error
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? x = {1, 2, 3, 4} x.add(4) print(len(x))
3
4
5
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is incorrect about Python dictionaries?
Keys must be unique.
Values must be unique.
Keys must be immutable.
Values can be of any data type.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the lambda keyword in Python define?
A class
A function
A module
A loop
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?
Similar Resources on Wayground
17 questions
Quiz 4 - Informatika
Quiz
•
12th Grade
15 questions
KUR EVENT
Quiz
•
11th Grade - University
11 questions
G 10- Understanding Main Memory and Cache
Quiz
•
10th Grade - University
17 questions
Latihan Soal Informatika
Quiz
•
8th Grade - University
10 questions
EXCEL
Quiz
•
9th - 12th Grade
15 questions
S2 Microsoft Access Database Quiz
Quiz
•
10th Grade - University
10 questions
java2/67
Quiz
•
12th Grade - University
20 questions
Eva_Est_P1_11_PMV
Quiz
•
4th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
11 questions
Exponent Quotient Rules A1 U7
Quiz
•
9th - 12th Grade
