Congratulations! You Passed!: Chapter 8 Quiz
Congratulations! You Passed!: Chapter 8 Quiz
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/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
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/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