Exam 10: Introduction to Arrays
Exam 1: Background49 Questions
Exam 2: First Java Programs47 Questions
Exam 3: Syntax, Errors, and Debugging46 Questions
Exam 4: Introduction to Control Statements47 Questions
Exam 5: Using Classes and Objects in Media Computing47 Questions
Exam 6: Introduction to Defining Classes46 Questions
Exam 7: Control Statements Continued47 Questions
Exam 8: Improving the User Interface45 Questions
Exam 9: Introduction to Html and Applets45 Questions
Exam 10: Introduction to Arrays47 Questions
Exam 11: Classes Continued46 Questions
Exam 12: Arrays Continued47 Questions
Exam 13: Recursion, Complexity, and Searching and Sorting47 Questions
Exam 14: Introduction to Collections43 Questions
Exam 15: Multithreading, Networks, Clientserver Programming47 Questions
Select questions type
The basic syntax for referring to an array ____ has the form <array name>[<index>].
Free
(Multiple Choice)
4.8/5
(40)
Correct Answer:
B
The simplest way to add a data element to an array is to ____.
Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
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:
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)
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
-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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)