Exam 7: Lists and Tuples

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

What is the first negative index in a list?

(Multiple Choice)
4.9/5
(79)

Which method or operator can be used to concatenate lists?

(Multiple Choice)
4.9/5
(79)

Tuples are __________ sequences which means that once a tuple is created,it cannot be changed.

(Short Answer)
4.9/5
(83)

In order to create a graph in Python,you need to include

(Multiple Choice)
4.8/5
(87)

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

(Multiple Choice)
4.9/5
(76)

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

(Short Answer)
4.9/5
(74)

A list cannot be passed as an argument to a function.

(True/False)
4.7/5
(87)

The __________ package is a library you can use in Python to create two-dimensional charts and graphs.

(Short Answer)
4.9/5
(78)

The sort method rearranges the elements of a list so they are in ascending or descending order.

(True/False)
5.0/5
(84)

What are the data items in a list called?

(Multiple Choice)
4.8/5
(79)

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.8/5
(95)

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

(Short Answer)
4.8/5
(68)

To calculate the average of the numeric values in a list,the first step is to get the total of values in the list.

(True/False)
4.8/5
(98)

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

(Multiple Choice)
4.9/5
(85)

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

(Multiple Choice)
4.8/5
(90)

The __________ method reverses the order of the items in a list.

(Short Answer)
4.8/5
(77)

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

(True/False)
4.8/5
(74)

Each element in a tuple has a(n)__________ that specifies its position in the tuple.

(Short Answer)
4.9/5
(69)

To add a descriptive label to the X and Y axes of a graph when using the matplotlib package,you need to import the labels module.

(True/False)
4.7/5
(80)

When working with multiple sets of data,one would typically use a(n)

(Multiple Choice)
4.8/5
(72)
Showing 21 - 40 of 40
close modal

Filters

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