Exam 12: Arrays Continued

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

Using a(n) ____ list with a two-dimensional array requires a list of lists.

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

A

When inserting an item from an array, if there is not room in the array, ____.

Free
(Multiple Choice)
4.9/5
(42)
Correct Answer:
Verified

D

Identify the letter of the choice that best matches the phrase or definition. a.Logical size b.Two-dimensional array c.Ragged array d.Tic-tac-toe game e.Drop-down menu -Must include elements all of the same type.

Free
(Essay)
4.8/5
(46)
Correct Answer:
Verified

B

When removing an item from an array, assume that ____.

(Multiple Choice)
4.8/5
(41)

Which of the following is NOT true about algorithms for a selection sort?

(Multiple Choice)
4.8/5
(43)

The ____ search is faster when searching an array of elements for a target element.

(Multiple Choice)
4.8/5
(31)

A drop-down menu is used to hide commands under visible labels to use GUI window space efficiently. ____________________

(True/False)
4.7/5
(34)

A linear search works well for arrays that are very large (thousands or millions of elements).

(True/False)
4.8/5
(42)

The Object class implements the Comparable interface.

(True/False)
4.8/5
(32)

Identify the letter of the choice that best matches the phrase or definition. a.Logical size b.Two-dimensional array c.Ragged array d.Tic-tac-toe game e.Drop-down menu -An example of a two-dimensional grid.

(Essay)
4.7/5
(35)

FIGURE 12-2 FIGURE 12-2   -Figure 12-2 above shows an example of a trace of data during a(n) ____ sort. -Figure 12-2 above shows an example of a trace of data during a(n) ____ sort.

(Multiple Choice)
4.8/5
(33)

To add a drop-down menu to a GUI, you need to add all of the following EXCEPT ____.

(Multiple Choice)
4.8/5
(29)

A(n) ____ sort causes a pass through the array to compare adjacent pairs of items.

(Multiple Choice)
4.8/5
(41)

The basic idea of an insertion sort is that for each index position (i), find the smallest data value in the positions i through length -1, then exchange the smallest value with the value at position i. ____________________

(True/False)
4.9/5
(42)

In a linear search, the loop breaks if the target is found. ____________________

(True/False)
4.7/5
(38)

Identify the letter of the choice that best matches the phrase or definition. a.Logical size b.Two-dimensional array c.Ragged array d.Tic-tac-toe game e.Drop-down menu -Is decremented by one when removing an item from an array.

(Essay)
4.9/5
(45)

For each pass of a(n) ____ search, the current leftmost position or current rightmost position is adjusted to track the portion of the array being searched.

(Multiple Choice)
4.9/5
(40)

The method ____ can be used instead of <, >, and = =.

(Multiple Choice)
4.9/5
(40)

When removing an item from an array, you must decrement the physical size by one. ____________________

(True/False)
4.7/5
(41)

Each sort method and its helper methods should be defined as private static. ____________________

(True/False)
5.0/5
(33)
Showing 1 - 20 of 47
close modal

Filters

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