Exam 8: Abstract Data Types and Subprograms

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

What are the properties of a binary tree?

(Essay)
4.8/5
(44)

An abstract data type (ADT) is a container whose properties (data and operations) are specified independently of any particular implementation.

(True/False)
4.9/5
(40)

In order to determine how you can fly from Boston to Los Angeles in the fewest number of stops, you would use a(n) _____________________ searching algorithm defined on a graph.

(Short Answer)
4.9/5
(40)

A stack is managed in a FIFO manner.

(True/False)
4.9/5
(37)

In order to determine what the shortest flight in miles from Boston to Los Angeles would be, you would use a(n) ___________ searching algorithm defined on a graph.

(Short Answer)
4.8/5
(28)

Removing an item from a stack is called the _______________ operation.

(Short Answer)
4.9/5
(37)

Which of the following is an abstract data type that operates on a "last in, first out" (LIFO) manner?

(Multiple Choice)
4.9/5
(27)

Which level provides an abstract view of data and the operations that manipulate them?

(Multiple Choice)
4.7/5
(27)

A graphical map with vertices representing the names of cities and with edges linking the vertices representing two-way roads between the cities is an example of a(n) _______________ graph.

(Short Answer)
4.8/5
(32)

In a(n) _______________ tree, each node has no more than two children.

(Short Answer)
4.8/5
(32)

What is the maximum number of nodes in a binary tree with 3 levels?

(Multiple Choice)
4.8/5
(26)

Which of the following is made up of a set of nodes called vertices and a set of lines called edges (or arcs)?

(Multiple Choice)
4.8/5
(42)

In a(n) _______________ tree, the values stored in the nodes are organized to allow an item to be found efficiently.

(Short Answer)
4.8/5
(36)

The root of a tree has no child nodes.

(True/False)
4.7/5
(38)

Which of the following would you use to represent airline flights between cities?

(Multiple Choice)
4.8/5
(43)

An array is fixed sized, but a list is variable sized. Explain.

(Essay)
4.7/5
(39)

Parameters are the identifiers listed in parentheses beside a subprogram name.

(True/False)
4.8/5
(38)

Adding an item to a stack is called the _______________ operation.

(Short Answer)
4.9/5
(34)

A(n)______________ graph is one in which there are values attached to the edges in the graph.

(Short Answer)
4.7/5
(43)

What is a reference parameter?

(Essay)
4.7/5
(32)
Showing 21 - 40 of 49
close modal

Filters

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