Exam 2: An Overview of Collections

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

Which type of collection is ordered by position?

(Multiple Choice)
4.7/5
(41)

In what order are dictionary items visited during an iteration?

(Multiple Choice)
4.8/5
(45)

Without abstraction, you would need to consider all aspects of a software system simultaneously.

(True/False)
4.9/5
(44)

When collections share mutable items, a deep copy using a for loop should be used to explicitly clone items before adding them to a new collection.

(True/False)
4.8/5
(41)

Which operator can you use to test for item membership in a collection?

(Multiple Choice)
4.7/5
(38)

What is the value of aList after the following code is executed? AList = [ 1, 2, 3 ] AList.remove(2)

(Multiple Choice)
4.9/5
(40)

A collection contains at least one item.

(True/False)
4.7/5
(39)

Which Python function returns the total number of items in a collection?

(Multiple Choice)
4.8/5
(33)

What is a group of zero or more items that can be operated on as a unit?

(Multiple Choice)
4.8/5
(47)

Which object type is immutable?

(Multiple Choice)
4.8/5
(24)
Showing 41 - 50 of 50
close modal

Filters

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