Exam 10: Introduction to Arrays

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

The basic syntax for referring to an array ____ has the form <array name>[<index>].

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

B

The simplest way to add a data element to an array is to ____.

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

A

Identify the letter of the choice that best matches the phrase or definition. a.Index b.Range c.Null d.Count e.Break -An item's position in an array.

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

A

When an object is used as a(n) ____ to a method, what gets passed is a reference to the object and not the object itself.

(Multiple Choice)
4.9/5
(30)

It is important to remember the length of an array when working with it.

(True/False)
4.9/5
(44)

An enhanced for loop is simpler to write than a standard for loop with an index.

(True/False)
4.9/5
(32)

A(n) ____________________ is a data structure consisting of an ordered collection of similar items.

(Short Answer)
4.9/5
(39)

Identify the letter of the choice that best matches the phrase or definition. a.Index b.Range c.Null d.Count e.Break -Failure to assign an array object can result in a(n) ____ pointer exception.

(Essay)
4.8/5
(42)

Identify the letter of the choice that best matches the phrase or definition. a.Index b.Range c.Null d.Count e.Break -This variable could be used to track the number of items input.

(Essay)
4.9/5
(39)

In a GUI, you should define a separate ____ class for each command button.

(Multiple Choice)
4.9/5
(46)

The Boolean variable ____ is used to break out of a loop if a particular number is in an array.

(Multiple Choice)
5.0/5
(43)

Each array variable must be declared in its own statement.

(True/False)
4.8/5
(40)

Arrays can be declared, instantiated, and initialized in one step. The list of numbers between the braces is called a(n) ____________________ list.

(Short Answer)
4.7/5
(35)

The index of an array cell ranges from 1 to the length of the array minus 1. ____________________

(True/False)
4.9/5
(42)

To access the ____ cell in an array, use the expression <array>.length - 1

(Multiple Choice)
4.9/5
(40)

The ____ symbol on a button in a GUI interface moves to the last record in the database and displays its data.

(Multiple Choice)
4.9/5
(38)

The JVM checks the values of subscripts before using them and throws an exception if they are out of bounds.

(True/False)
4.8/5
(37)

In a GUI, the ____________________ sets the title of the window, sets its closing action, and adds the widgets to the panels.

(Short Answer)
4.9/5
(42)

The ____ symbol on a button in a GUI interface moves to the first record in the database and displays its data.

(Multiple Choice)
4.9/5
(42)

FIGURE 10-2 FIGURE 10-2   -Alex is trying to find the first location of a value in the array. The variable loc initially equals ____. -Alex is trying to find the first location of a value in the array. The variable loc initially equals ____.

(Multiple Choice)
4.8/5
(40)
Showing 1 - 20 of 47
close modal

Filters

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