Filters
Question type

Study Flashcards

What statement correctly defines what a median is?


A) A median is the minimum value that is smaller than all other values in a set.
B) A median is the maximum value that is greater than all other values in a set.
C) A median is the value that is less than half the numbers in a set and greater than the other half.
D) A median is the sum of all odd values in a set.

E) B) and C)
F) B) and D)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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


A) cards
B) instances
C) items
D) elements

E) None of the above
F) A) and B)

Correct Answer

verifed

verified

A lookup table is a type of dictionary.

A) True
B) False

Correct Answer

verifed

verified

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.

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

A list is immutable.

A) True
B) False

Correct Answer

verifed

verified

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


A) []
B) ()
C) {}
D) "Y"

E) A) and B)
F) C) and D)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

Showing 41 - 50 of 50

Related Exams

Show Answer