• Home
  • Textbooks
  • Fundamentals Of Python: Data Structures
  • An Overview of Collections

Fundamentals Of Python: Data Structures

Kenneth A. Lambert

Chapter 2

An Overview of Collections - all with Video Answers

Educators


Chapter Questions

02:57

Problem 1

Examples of linear collections are:
a. Sets and trees
b. Lists and stacks

Sirat Shah
Sirat Shah
Numerade Educator

Problem 2

Examples of unordered collections are:
a. Queues and lists
b. Sets and dictionaries

Check back soon!
View

Problem 3

A hierarchical collection can represent a:
a. Line of customers at a bank
b. File directory system

James Kiss
James Kiss
Numerade Educator
02:41

Problem 4

A graph collection best represents a:
a. Set of numbers
b. Map of flight paths between cities

Prathan Jarupoonphol
Prathan Jarupoonphol
Numerade Educator

Problem 5

In Python, a type conversion operation for two collections:
a. Creates copies of the objects in the source collection and adds these new objects to a new instance of the destination collection
b. Adds references to the source collection's objects to a new instance of the destination collection

Check back soon!
04:51

Problem 6

The $=$ operation for two lists must:
a. Compare pairs of items at each position for equality
b. Merely verify that each item in one list is also in the other list

Morgan Cheatham
Morgan Cheatham
Numerade Educator

Problem 7

The $=$ operation for two sets must:
a. Compare pairs of items at each position for equality
b. Verify that the sets are of the same size and that each item in one set is also in the other set

Check back soon!

Problem 8

The for loop on a list visits its items:
a. At each position, from the first one through the last one
b. In no particular order

Check back soon!

Problem 9

The map function creates a sequence of the:
a. Items in a given collection that pass a Boolean test
b. Results of applying a function to the items in a given collection

Check back soon!

Problem 10

The filter function creates a sequence of the:
a. Items in a given collection that pass a Boolean test
b. Results of applying a function to the items in a given collection

Check back soon!