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
9 questions
Intermediate python

Quiz
•
9th - 12th Grade
9 questions
Quiz on Introduction to Programming with Python

Quiz
•
9th - 12th Grade
15 questions
Database Concepts

Quiz
•
11th Grade
13 questions
computer science

Quiz
•
11th Grade
10 questions
Python Generators

Quiz
•
10th Grade - University
7 questions
Python-list,tuple,Dictionary

Quiz
•
11th - 12th Grade
9 questions
Python Code Snippet Quiz

Quiz
•
11th Grade
10 questions
CS Python Fundamentals Test 12 PRACTICE

Quiz
•
9th - 12th 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
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University