Exam 7: Lists and Tuples

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The _______________ exception is raised when a search item is not in the list being searched.

(Short Answer)
4.8/5
(35)

What would you use if an element is to be removed from a specific index?

(Multiple Choice)
4.8/5
(43)

A(n) _______________ is an object that holds multiple items of data.

(Short Answer)
4.7/5
(30)

A(n) _______________ is a span of items that are taken from a sequence.

(Short Answer)
4.8/5
(40)

What method can be used to place an item in the list at a specific index?

(Multiple Choice)
4.8/5
(39)

Lists are dynamic data structures such that items may be added to them or removed from them.

(True/False)
4.8/5
(43)

What would be the value of the variable list after the execution of the following code? List = [1, 2] List = list * 3

(Multiple Choice)
4.9/5
(33)

The built-in function _______________ returns the length of a sequence.

(Short Answer)
4.9/5
(34)

The first step in calculating the average of the values in a list is to get the total of the values.

(True/False)
4.8/5
(36)

The _______________ function returns the item that has the lowest value in the sequence.

(Short Answer)
4.8/5
(38)

What would be the value of the variable list after the execution of the following code? List = [1, 2, 3, 4] List[3] = 10

(Multiple Choice)
4.9/5
(27)

Invalid indexes do not cause slicing expressions to raise an exception.

(True/False)
4.8/5
(40)

The _______________ method reverses the order of the items in the list.

(Short Answer)
4.8/5
(38)

In slicing, if the end index specifies a position beyond the end of the list, Python will use the length of the list instead.

(True/False)
4.9/5
(39)

What method or operator can be used to concatenate lists?

(Multiple Choice)
4.8/5
(37)
Showing 21 - 35 of 35
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)