Exam 12: Arrays Continued

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

When replacing an item in an array, the logical size changes.

(True/False)
4.9/5
(31)

You should test sort methods with an array that is already sorted.

(True/False)
4.9/5
(36)

The bubble sort algorithm involves a(n) ____________________ loop structure.

(Short Answer)
4.9/5
(33)

David knows that when removing an element, the target index needs to be ____ the logical size

(Multiple Choice)
4.9/5
(45)

In a(n) ____________________ array, the rows are not all the same length.

(Short Answer)
4.7/5
(37)

When inserting and removing items from an array, the order in which items are shifted is not important.

(True/False)
4.9/5
(29)

____ is the process of arranging array elements.

(Multiple Choice)
4.8/5
(33)

A(n) ____ search assumes the elements are sorted.

(Multiple Choice)
4.7/5
(40)

A(n) ____________________ search works well for elements that are in ascending order.

(Short Answer)
4.8/5
(34)

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 -Used to combine commands in a GUI window.

(Essay)
4.8/5
(32)

Objects can be compared using the < and > operators.

(True/False)
4.7/5
(38)

A(n) ____ search examines every element to determine the absence of a target.

(Multiple Choice)
5.0/5
(42)

Before sending the compareTo message to an arbitrary object, the object must be cast to ____.

(Multiple Choice)
4.9/5
(45)

A(n) ____ search starts at the middle of an array.

(Multiple Choice)
5.0/5
(26)

When inserting an item in an array, start at the ____.

(Multiple Choice)
4.9/5
(29)

The selection sort will not allow an automatic loop exit if the array becomes ordered during an early pass.

(True/False)
4.8/5
(34)

When creating a drop-down menu, each menu item needs to have a(n) ____ attached to it.

(Multiple Choice)
4.9/5
(40)

FIGURE 12-1 FIGURE 12-1   -Figure 12-1 above shows a trace of a(n) ____ search. -Figure 12-1 above shows a trace of a(n) ____ search.

(Multiple Choice)
4.8/5
(35)

One example of a two-dimensional grid is a screen coordinate system for a graphics application.

(True/False)
4.8/5
(39)

Selection, bubble, and insertion are simple sort methods that work well for small- and medium-sized arrays.

(True/False)
5.0/5
(33)
Showing 21 - 40 of 47
close modal

Filters

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