Q6

Week 6 Quiz

Lists and Data Structures

Student Information

Question 1: Multiple Choice (2 points)

How do you create an empty list in Python?

Question 2: Multiple Choice (2 points)

What will my_list[1] return if my_list = ['apple', 'banana', 'cherry']?

Question 3: Short Answer (3 points)

Write code to add the item 'orange' to the end of a list called 'fruits':

Question 4: True/False (2 points)

Lists in Python can contain different data types (strings, numbers, booleans) in the same list.

Question 5: Multiple Choice (1 point)

Which method removes the last item from a list?

← Back to Lesson Semester Overview Next Lesson →