0% found this document useful (0 votes)
342 views

Congratulations! You Passed!: Chapter 9 Quiz

This document is a quiz summary from an online Python data structures course. It shows that the user passed a 10 question quiz on Python dictionaries with a perfect score of 100%. The quiz covered key differences between lists and dictionaries, common terminology for dictionaries, using dictionary syntax and methods, and common applications of dictionaries in Python programs.

Uploaded by

DeezNuts
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
342 views

Congratulations! You Passed!: Chapter 9 Quiz

This document is a quiz summary from an online Python data structures course. It shows that the user passed a 10 question quiz on Python dictionaries with a perfect score of 100%. The quiz covered key differences between lists and dictionaries, common terminology for dictionaries, using dictionary syntax and methods, and common applications of dictionaries in Python programs.

Uploaded by

DeezNuts
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

03/05/2019 Python Data Structures - Home | Coursera

Chapter 9 Quiz 10/10 points (100%)


Quiz, 10 questions

Congratulations! You passed! Next Item

1/1
 point

1. 
How are Python dictionaries di erent from Python lists?

1/1
 point

2. 
What is a term commonly used to describe the Python dictionary feature in other programming
languages?

1/1
 point

3. 
What would the following Python code print out?

1 stuff = dict()
2 print(stuff['candy'])

1/1
 point

4. 
What would the following Python code print out?

1 stuff = dict()
2 print(stuff.get('candy',-1))

1/1


https://www.coursera.org/learn/python-data/exam/8pw9E/chapter-9-quiz 1/3
03/05/2019 Python Data Structures - Home | Coursera


Chapter 9 Quiz
point

10/10 points (100%)


5. questions
Quiz, 10
(T/F) When you add items to a dictionary they remain in the order in which you added them.

1/1
 point

6. 
What is a common use of Python dictionaries in a program?

1/1
 point

7. 
Which of the following lines of Python is equivalent to the following sequence of statements assuming that
counts is a dictionary?

1 if key in counts:
2 counts[key] = counts[key] + 1
3 else:
4 counts[key] = 1

1/1
 point

8. 
In the following Python, what does the for loop iterate through?

1 x = dict()
2 ...
3 for y in x :
4 ...

1/1
 point

9. 
Which method in a dictionary object gives you a list of the values in the dictionary?

1/1
 point

10. 

https://www.coursera.org/learn/python-data/exam/8pw9E/chapter-9-quiz 2/3
03/05/2019 Python Data Structures - Home | Coursera

What is the purpose of the second parameter of the get() method for Python dictionaries?
Chapter 9 Quiz 10/10 points (100%)
Quiz, 10 questions

https://www.coursera.org/learn/python-data/exam/8pw9E/chapter-9-quiz 3/3

You might also like