
Python Quizz-11
Authored by shilpa gupta
Computers
University
Used 25+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements create a dictionary?
d = {}
d = {“john”:40, “peter”:45}
d = {40:”john”, 45:”peter”}
All of the mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code snippet?
d = {"john":40, "peter":45}
print("john" in d)
True
False
None
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
d1 = {"john":40, "peter":45}
d2 = {"john":466, "peter":45}
print(d1 == d2)
True
False
None
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
d1 = {"john":40, "peter":45}
d2 = {"john":466, "peter":45}
print(d1 > d2)
True
False
Error
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
d = {"john":40, "peter":45}
print(d["john"])
45
40
john
error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose d = {“john”:40, “peter”:45}. To obtain the number of entries in dictionary which command do we use?
d.size()
len(d)
size(d)
d.len()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
d = {"john":40, "peter":45}
print(list(d.keys()))
[“john”, “peter”]
[“john”:40, “peter”:45]
(“john”, “peter”)
(“john”:40, “peter”:45)
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
10 questions
Ke-Al Azhar 8 an
Quiz
•
7th Grade - University
10 questions
Hệ Điều Hành Của Máy Tính
Quiz
•
10th Grade - University
10 questions
Decomposição: desenvolvendo um quiz sobre reciclagem / 9 ano
Quiz
•
9th Grade - University
12 questions
Centros de datos perimetral
Quiz
•
University
15 questions
Computer Science Quiz
Quiz
•
University
10 questions
Tutorium1
Quiz
•
University
10 questions
Node.js
Quiz
•
University
10 questions
KUIS PRAK. 9: MANAGEMENT FILE 😼
Quiz
•
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