Exam 4: Introducing the Python Collections: Lists, Dictionaries, Tuples, and Statistics

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

Match each definition with its term. -Found by locating the item that occurs in the exact middle of a collection.

Free
(Multiple Choice)
5.0/5
(30)
Correct Answer:
Verified

A

One of the most often used measures of a collection of data is known as:

Free
(Multiple Choice)
4.9/5
(46)
Correct Answer:
Verified

B

Case Study 3: >>> ages = {'David':45, 'Brenda':46} >>> ages {'David': 45, 'Brenda': 46} >>> -Refer to the session in the accompanying Case Study 3. The reference ages refers to a list.

Free
(True/False)
4.9/5
(28)
Correct Answer:
Verified

False

Case Study 2: >>> changeList = [1, 2, "buckle my shoe", 3, 4, "shut the door"] 2. >>> changeList 3. [1, 2, 'buckle my shoe', 3, 4, 'shut the door'] 4. >>> changeList[2] = "the sky is blue" 5. >>> changeList 6. ?????? 7. >>> name = "Monte" 8. >>> name[2] = "x" 9. ?????? -Refer to the session in the accompanying Case Study 2. What will be the output on line 9?

(Multiple Choice)
4.9/5
(39)

How is an empty list represented in Python?

(Multiple Choice)
4.7/5
(34)

Describe two characteristics of Python dictionaries.

(Essay)
5.0/5
(43)

Explain the meaning of the terms mutable and immutable.

(Essay)
4.7/5
(37)

Match each definition with its term. -The most frequently occurring value in a collection.

(Multiple Choice)
4.9/5
(33)

Match each definition with its term. -Calculated by adding up the values in a collection and dividing by the number of items.

(Multiple Choice)
4.8/5
(40)

What represents the value(s) that occur most often in a set of data?

(Multiple Choice)
4.9/5
(42)

The following Python statement creates a list of even numbers in ascending order: list(range(10, 2, -2))

(True/False)
4.8/5
(49)

How would you use Python to find the mean value in a list?

(Essay)
4.8/5
(40)

Case Study 3: >>> ages = {'David':45, 'Brenda':46} >>> ages {'David': 45, 'Brenda': 46} >>> -Refer to the session in the accompanying Case Study 3. What will be the output after the following statement? >>> ages['Kelsey'] = 19 >>> ages

(Multiple Choice)
4.8/5
(32)

How might you use Python to visualize a frequency distribution?

(Essay)
4.9/5
(40)

Match each definition with its term. -Measure of how spread out data values in a collection are.

(Multiple Choice)
4.8/5
(50)

How can Python be used to calculate dispersion?

(Essay)
4.9/5
(34)

Lists in Python are sequences.

(True/False)
4.9/5
(39)

A Python ____ is a collection of associated pairs of items where each pair consists of a key and a value.

(Multiple Choice)
4.8/5
(36)

How would you find the mode of a list in Python?

(Essay)
4.9/5
(31)

Define the concept of a list and describe some specific characteristics of lists in Python.

(Essay)
4.8/5
(33)
Showing 1 - 20 of 33
close modal

Filters

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