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
Which of the following is not true ?
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 Wayground
10 questions
Lesson 44 - Dictionary Datatype 2

Quiz
•
5th - 8th Grade
15 questions
G.K. QUIZ

Quiz
•
7th - 12th Grade
5 questions
Teks Narasi

Quiz
•
7th Grade
10 questions
AI for Youth – Machine and Minds

Quiz
•
8th Grade
7 questions
Gk quiz

Quiz
•
5th Grade
10 questions
Lesson 42 - file related functions

Quiz
•
5th Grade
11 questions
Dona Merced's MTSS-RTI Process

Quiz
•
6th Grade
15 questions
BASIC COMPUTER

Quiz
•
7th - 8th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Professional Development
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
13 questions
Primary and Secondary Sources

Quiz
•
6th Grade
15 questions
Decimal Operations

Quiz
•
6th Grade
10 questions
Common Denominators

Quiz
•
5th Grade