Filters
Question type

Study Flashcards

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


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

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.

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

Correct Answer

verifed

verified

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.

Correct Answer

verifed

verified

A list is immutable.

Correct Answer

verifed

verified

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

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.

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

A lookup table is a type of dictionary.

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Showing 41 - 50 of 50

Related Exams

Show Answer