Exam 14: Introduction to Collections

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

Collections are typically static. ____________________

Free
(True/False)
4.8/5
(40)
Correct Answer:
Verified

False

A map is a collection of unique items called entries. Each entry contains a key and a value.

Free
(True/False)
4.9/5
(38)
Correct Answer:
Verified

True

The ____ of two sets (A and B) is the set of items in A that are also items in B.

Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
Verified

B

A(n) ____ is a linear sequence of characters with access to the end, called the top.

(Multiple Choice)
4.9/5
(27)

When a method signature starts with the modifier ____, it means that the user of the method sends a message to the main class, not to an instance of any class.

(Multiple Choice)
4.9/5
(34)

Identify the letter of the choice that best matches the phrase or definition. a.Queue b.Set c.Map d.Tree e.Graph -A linear sequence of elements with insertions at the rear and removals at the front.

(Essay)
4.8/5
(40)

A programmer chooses a collection class based on ____.

(Multiple Choice)
4.9/5
(36)

Infix evaluation applies operators as soon as they are encountered and never requires parentheses. ____________________

(True/False)
4.7/5
(44)

In modern languages like Java, arrays are considered a lower-level data structure and are often used to implement other collections.

(True/False)
4.9/5
(36)

Translating infix expressions to postfix form is an example of an application of a ____.

(Multiple Choice)
4.9/5
(35)

FIGURE 14-1 FIGURE 14-1   -Java's built-in collections are defined in the package ____, as shown in Figure 14-1 above. -Java's built-in collections are defined in the package ____, as shown in Figure 14-1 above.

(Multiple Choice)
4.9/5
(42)

A(n) ____ is a linear sequence of elements of any type by numeric index position.

(Multiple Choice)
4.9/5
(40)

The contents and size of a collection typically do not change during the course of a program.

(True/False)
4.7/5
(43)

A(n) ____ provides a logical view of the behavior of a class of objects.

(Multiple Choice)
4.7/5
(37)

Identify the letter of the choice that best matches the phrase or definition. a.Multithreading b.Sleep c.Blocked thread d.Multiprocessing e.Synchronization -Collections are used to help programmers effectively organize data in programs.

(True/False)
4.9/5
(35)

Collections must be homogeneous, meaning the items are all of the same type.

(True/False)
4.8/5
(38)

Identify the letter of the choice that best matches the phrase or definition. a.Queue b.Set c.Map d.Tree e.Graph -A network of elements.

(Essay)
4.8/5
(38)

Identify the letter of the choice that best matches the phrase or definition. a.Queue b.Set c.Map d.Tree e.Graph -An unordered collection of unique elements

(Essay)
4.8/5
(38)

In a map, an attribute can also be an object's key.

(True/False)
4.8/5
(35)

A programmer must use ____ to manipulate elements in a list.

(Multiple Choice)
4.8/5
(41)
Showing 1 - 20 of 43
close modal

Filters

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