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

Congratulations! You Passed!: Chapter 8 Quiz

This document summarizes a Coursera quiz on Python data structures. It lists 10 multiple choice questions about concepts like collection variables, loops, lists, slicing, and sorting. The quiz covers topics from Chapter 8 and the student received a perfect score of 10 out of 10 points.

Uploaded by

DeezNuts
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
391 views

Congratulations! You Passed!: Chapter 8 Quiz

This document summarizes a Coursera quiz on Python data structures. It lists 10 multiple choice questions about concepts like collection variables, loops, lists, slicing, and sorting. The quiz covers topics from Chapter 8 and the student received a perfect score of 10 out of 10 points.

Uploaded by

DeezNuts
Copyright
© © All Rights Reserved
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 8 Quiz 10/10 points (100%)


Quiz, 10 questions

Congratulations! You passed! Next Item

1/1
 point

1. 
How are "collection" variables di erent from normal variables?

1/1
 point

2. 
What are the Python keywords used to construct a loop to iterate through a list?

1/1
 point

3. 
For the following list, how would you print out 'Sally'?

1 friends = [ 'Joseph', 'Glenn', 'Sally' ]

1/1
 point

4. 
What would the following Python code print out?

1 fruit = 'Banana'
2 fruit[0] = 'b'
3 print(fruit)

1/1


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

03/05/2019

point
Python Data Structures - Home | Coursera

Chapter 8 Quiz 10/10 points (100%)


5. questions
Quiz, 10
Which of the following Python statements would print out the length of a list stored in the variable data?

1/1
 point

6. 
What type of data is produced when you call the range() function?

1 x = range(5)

1/1
 point

7. 
What does the following Python code print out?

1 a = [1, 2, 3]
2 b = [4, 5, 6]
3 c = a + b
4 print(len(c))

1/1
 point

8. 
Which of the following slicing operations will produce the list [12, 3]?

1 t = [9, 41, 12, 3, 74, 15]

1/1
 point

9. 
What list method adds a new item to the end of an existing list?

1/1
 point

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

10. 
Chapter 8 the
What will Quiz
following Python code print out? 10/10 points (100%)
Quiz, 10 questions
1 friends = [ 'Joseph', 'Glenn', 'Sally' ]
2 friends.sort()
3 print(friends[0])

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

You might also like