Dictionary Class 11

Quiz
•
Computers
•
11th - 12th Grade
•
Hard
Parveena undefined
Used 69+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following functions will return the key, value pairs of a dictionary?
keys()
values()
items()
all of these
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which value is assigned to keys, if no value is specified with the fromkeys() method?
0
1
None
any of these
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dictionaries are ________ data types if Python
mutable
immutable
simple
all of thses
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function returns the number of items in the dictionary?
len()
get()
values()
keys()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of
d={'a':1,'b':2,"c":3}
print(d[0])
a
b
c
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed by the following statement?
d={"cat":12,"dog":6,"elephant":23,"bear":20}
print("dog" in d)
True
False
Error
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed by the following statement?
d={"cat":12,"dog":6,"elephant":23,"bear":20}
print("dog" in d.values())
True
False
Error
None
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Threats to computer systems and networks

Quiz
•
9th - 11th Grade
12 questions
Computer Science Vectors

Quiz
•
12th Grade
10 questions
MOAC Excel 2016 Lesson 01

Quiz
•
8th - 12th Grade
10 questions
Technical Terms - Hardware (A-Z) - Hard Token

Quiz
•
12th Grade
10 questions
Quiz1_HPB2021_2010t1

Quiz
•
1st - 12th Grade
10 questions
Programming 2 Lesson 3

Quiz
•
11th Grade
10 questions
Basic Terms in Animation

Quiz
•
9th - 11th Grade
10 questions
DataFrame and Series

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade