Which of the following functions will return the key, value pairs of a dictionary?
Dictionary Class 11

Quiz
•
Computers
•
11th - 12th Grade
•
Hard
Parveena undefined
Used 68+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 Quizizz
10 questions
python(strings)

Quiz
•
11th Grade
15 questions
Creating and Altering Data Structure

Quiz
•
9th - 12th Grade
11 questions
DIctionary

Quiz
•
11th Grade
10 questions
Dictionary in Python

Quiz
•
11th - 12th Grade
15 questions
Problem Solving using Python and R - UNIT II - Dictionary

Quiz
•
12th Grade
12 questions
Photoshop Basics

Quiz
•
11th Grade
12 questions
Java Strings

Quiz
•
9th - 12th Grade
12 questions
12cs cha9

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade