
Dictionary in Python
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Sangeetha John
Used 12+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of following code-
a={1:"A",2:"B",3:"C"}
for i in a:
print(i,end=" ")
2.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
What will be the output of following code-
a={i: i*i for i in range(6)}
a
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
a={}
a[2]=1
a[1]=[2,3,4]
print(a[1][1])
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of following program:
dictionary = {1:'1', 2:'2', 3:'3'}
del dictionary[1]
dictionary[1] = '10'
del dictionary[2]
print(len(dictionary))
5.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
What will be the output of following program:
a={1:5,2:3,3:4}
a.pop(3)
print(a)
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of following program:
my_dict = {}
my_dict[(1,2,4)] = 8
my_dict[(4,2,1)] = 10
my_dict[(1,2)] = 12
sum = 0
for k in my_dict:
sum += my_dict[k]
print (sum)
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of following program:
a = {(1,2):1,(2,3):2}
print(a[1,2])
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
ระบบทางเทคโนโลยี ม.4
Quiz
•
10th Grade - University
10 questions
Interfejsy USB i bezprzewodowe oraz urządzenia wskazujące i
Quiz
•
9th - 12th Grade
10 questions
TIN 11- KIỂU XÂU
Quiz
•
11th Grade
15 questions
Javascript Quiz 2
Quiz
•
11th Grade
15 questions
مراجعة وحدة البرمجة بواسطة المايكروبت
Quiz
•
9th - 12th Grade
15 questions
J808 LO1 and LO2 planning project keywords / terms
Quiz
•
9th - 11th Grade
10 questions
1.1 - System Architecture - CPU [OCR] [GCSE]
Quiz
•
9th - 12th Grade
15 questions
BÀI 16 - THUẬT TOÁN SẮP XẾP
Quiz
•
9th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
20 questions
christmas songs
Quiz
•
KG - University
