Which of the following is not true ?
Lesson 43 - Dictionary Datatype 1

Quiz
•
Professional Development, Education
•
5th - 8th Grade
•
Medium
NotchUp .co
Used 24+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
set can have a element multiple times.
tuple is mutable
dictionary is set of key value pair
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following way is used to add elements to the dictionary ?
a['1']=30
a['22.5']=40
a['rohit']=25
All of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which of the following statement is true ?
Dictionary can have same value multiple times with unique keys
Dictionary can have same key multiple times with unique values
Dictionary is immutable in nature
none
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a={'rohit': 70, 'rahul': 100, 'rohan': 80}
From above dictioary 100 can be accessed by -
a['rahul']
a['1']
a['rahul'] and a.get("rahul")
none
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of following code ?
x={'rohit': 20, 'rahul': 25, 'rohan': 30}
for i in x:
print(i)
rohit
rahul
rohan
20
25
30
rohit:20
rahul:25
rohan:30
none
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code -
x={'rohit': 20, 'rahul': 25, 'rohan': 30}
for i in x.values():
print(i)
rohit
rahul
rohan
20
25
30
rohit 20
rahul 25
rohan 30
none
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code ?
x={'rohit': 20, 'rahul': 25, 'rohan': 30}
for x, y in x.items():
print(x, y)
rohit
rahul
rohan
20
25
30
rohit 20
rahul 25
rohan 30
none
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
BASIC COMPUTER

Quiz
•
7th - 8th Grade
10 questions
Loops-Quiz

Quiz
•
6th - 8th Grade
10 questions
Simple Easy Basic Lua Quiz

Quiz
•
4th Grade - Professio...
15 questions
mental ability

Quiz
•
1st - 5th Grade
15 questions
Fractions

Quiz
•
4th Grade - University
13 questions
Python Intermediate Quiz - 1

Quiz
•
8th Grade - Professio...
10 questions
Logic Building in Java Part 1

Quiz
•
6th - 9th Grade
15 questions
Lesson 31 Test-4

Quiz
•
5th - 8th Grade
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