Exam 9: Advanced Array Concepts
Exam 1: Creating Java Programs68 Questions
Exam 2: Using Data74 Questions
Exam 3: Using Methods, Classes, and Objects68 Questions
Exam 4: More Object Concepts67 Questions
Exam 5: Making Decisions70 Questions
Exam 6: Looping72 Questions
Exam 7: Characters, Strings, and the Stringbuilder73 Questions
Exam 8: Arrays74 Questions
Exam 9: Advanced Array Concepts74 Questions
Exam 10: Introduction to Inheritance70 Questions
Exam 11: Advanced Inheritance Concepts70 Questions
Exam 12: Exception Handling65 Questions
Exam 13: File Input and Output74 Questions
Exam 14: Introduction to Swing Components74 Questions
Exam 15: Advanced Gui Topics69 Questions
Exam 16: Graphics74 Questions
Exam 17: Applets, Images, and Sound72 Questions
Select questions type
int[] myVals = {2, 4, 6, 8} Using the above four-element array, what is the value of myVals[1]?
(Multiple Choice)
4.8/5
(35)
When you start with the object that has the largest value, you are sorting in ____________________ order.
(Short Answer)
4.8/5
(41)
The bubble sort is the fastest and most efficient sorting technique.
(True/False)
4.9/5
(42)
Write the statement that assigns the integer value 20 to the first column of the first row of an array named myVals.
(Short Answer)
4.8/5
(38)
____ is the process of arranging a series of objects in some logical order.
(Multiple Choice)
4.9/5
(36)
Java provides a(n) ____ class, which contains many useful methods for manipulating arrays.
(Multiple Choice)
4.8/5
(32)
Write the statement to declare an ArrayList named myVals with a capacity of 15 items. Explain the importance of capacity when working with an ArrayList.
(Essay)
4.8/5
(36)
Match each term with the correct statement below.
-Use them with the class name without instantiating an object
(Multiple Choice)
4.9/5
(39)
import java.util.*;
import javax.swing.*;
public class binary_search
{
public static void main(String[] args)
{
int myNums[]={2, 44, 5, 66, 78, 90, 23, 66};
int point, find = 78;
point = Arrays.binarySearch(myNums, find);
System.out.println("Element found at index " + point);
}
}
Using the above code, what output will be displayed when the program is executed? Describe how the binarySearch() method functions.
(Essay)
4.8/5
(25)
Match each term with the correct statement below.
-Alters an item at a specified ArrayList location
(Multiple Choice)
4.8/5
(46)
You can think of the single dimension of a single dimensional array as the height of the array.
(True/False)
4.9/5
(36)
The simplest possible sort involves two values that are out of order.
(True/False)
5.0/5
(43)
int[][] studentScores = {{70, 82, 90, 68},
{95, 75, 67, 89},
{98, 79, 57, 81}};
Using the above two-dimensional array, what is the value of studentScores[0][0]? What is the value of studentScores[2][3]? What is the value of studentScores[1][2]? Describe how arrays reference values with subscripts.
(Essay)
4.8/5
(40)
In Java, you create an enumerated data type in a statement that uses the keyword ____.
(Multiple Choice)
4.8/5
(44)
Regarding enumerations, the ____ method returns an array of the enumerated constants.
(Multiple Choice)
4.8/5
(37)
What are some of the advantages of declaring an ArrayList with a specified type?
(Essay)
4.7/5
(32)
Match each term with the correct statement below.
-Two or more columns of values
(Multiple Choice)
4.8/5
(42)
Match each term with the correct statement below.
-Adds an item to the end of an ArrayList
(Multiple Choice)
4.7/5
(40)
Showing 41 - 60 of 74
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)