Exam 5: Lists and Dictionaries

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

A function can be defined in a Python shell, but it is more convenient to define it in an IDLE window, where it can be saved to a file.

(True/False)
4.7/5
(28)

What statement correctly defines what a median is?

(Multiple Choice)
4.8/5
(33)

When declaring a tuple, you enclose the tuple's elements in what two characters?

(Multiple Choice)
4.7/5
(42)

A list is immutable.

(True/False)
4.8/5
(39)

A lookup table is a type of dictionary.

(True/False)
4.9/5
(36)

The print function strips the quotation marks from a string, but it does not alter the look of a list.

(True/False)
4.8/5
(28)

The median of a list of values is the value that occurs most frequently.

(True/False)
4.9/5
(50)

A list is a sequence of data values known by either of what two terms? (Choose two.)

(Multiple Choice)
4.9/5
(34)

The is operator has no way of distinguishing between object identity and structural equivalence.

(True/False)
4.9/5
(39)

A Python dictionary is written as a sequence of key/value pairs separated by commas. These pairs are sometimes called indexes.

(True/False)
4.9/5
(28)
Showing 41 - 50 of 50
close modal

Filters

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