Title: Competency 8 Practice Quiz
Course: Programming Fundamentals I > Section: Practice Quizzes

Q: What will the following code display?

numbers = [ 1, 2, 3, 4, 5]

numbers [2] = 99

print (numbers)
Feedback: [1, 2, 99, 4, 5]

Q: What will the following code display?

numbers = list (range (3) )

print (numbers)
Feedback: [0, 1, 2]

Q: What will the following code display?

numbers = [10] * 5

print (numbers)
Feedback: [10, 10, 10, 10, 10]

Q: A/An __________ is a/an span of items that are taken from a sequence
A: slice
If right: 

Q: __________ __________ removes the first occurrence of item in the list
A: Remove (item)

Q: ________ _________ removes an element from a specific index in a list
A: del statement

Q: How do you find the lowest and highest values in a list?
- min and max functions
- high and low functions
- big and small functions
- write a program that deletes any value that is not the highest or lowest
A: min and max functions

Q: To make a copy of a list you must
- copy each element of the list
- add each element to the list
- select each element of the list
- print each element of the list
A: copy each element of the list

Q: To read data from a file use the file object’s _________ method
A: readlines

Q: A/An __________ _______ is a list that contains other lists as its elements
A: Two-dimensional list