Exam 7: Arrays and Array Lists
Exam 1: Introduction76 Questions
Exam 2: Using Objects82 Questions
Exam 3: Implementing Classes108 Questions
Exam 4: Fundamental Data Types124 Questions
Exam 5: Decisions119 Questions
Exam 6: Loops107 Questions
Exam 7: Arrays and Array Lists117 Questions
Exam 8: Designing Classes88 Questions
Exam 9: Inheritance99 Questions
Exam 10: Interfaces100 Questions
Exam 11: Input/Output and Exception Handling108 Questions
Exam 12: Object-Oriented Design104 Questions
Exam 13: Recursion99 Questions
Exam 14: Sorting and Searching100 Questions
Exam 15: The Java Collections Framework102 Questions
Exam 16: Basic Data Structures102 Questions
Exam 17: Tree Structures102 Questions
Exam 18: Generic Classes75 Questions
Exam 19: Stream Processing85 Questions
Exam 20: Graphical User Interfaces75 Questions
Exam 21: Advanced Input/Output90 Questions
Exam 22: Multithreading81 Questions
Exam 23: Internet Networking74 Questions
Exam 24: Relational Databases75 Questions
Exam 25: XML74 Questions
Select questions type
Consider the following code snippet:
String[] data = { "123", "ghi", "jkl", "def", "%&*" };
Which statement sorts the data array in ascending order?
(Multiple Choice)
4.8/5
(37)
Assume the following variable has been declared and given a value as shown:
int[] numbers = {9, 17, -4, 21 };
Which is the value of numbers.length?
(Multiple Choice)
4.9/5
(38)
Which one of the following statements is true about using arrays with methods?
(Multiple Choice)
4.8/5
(41)
Suppose you wish to use an array to solve a new problem.What is the first step to take in finding a solution?
(Multiple Choice)
4.9/5
(41)
Consider the following line of code:
int[] somearray = new int[30];
Which one of the following options is a valid line of code for displaying the twenty-eighth element of somearray?
(Multiple Choice)
5.0/5
(41)
What should you check for when calculating the smallest value in an array list?
(Multiple Choice)
4.8/5
(38)
Which one of the following is the correct code snippet for calculating the largest value in an integer array list arrList of size 10?
(Multiple Choice)
4.8/5
(32)
Assume the method doSomething has been defined as follows:
What does the method do?

(Multiple Choice)
4.7/5
(40)
Assume the method doSomething has been defined as follows:
What is printed by the statements below?
int [] nums = {3, 18, 29, -2} ;
System.out.print(Arrays.toString(doSomething(nums)));
![Assume the method doSomething has been defined as follows: What is printed by the statements below? int [] nums = {3, 18, 29, -2} ; System.out.print(Arrays.toString(doSomething(nums)));](https://storage.examlex.com/TB7392/11eb9782_fd7e_f30e_b9fe_e96ad4c6d67f_TB7392_00.jpg)
(Multiple Choice)
4.8/5
(36)
Assume the following variable has been declared and given a value as shown:
Which is the value of data[0].length?
![Assume the following variable has been declared and given a value as shown: Which is the value of data[0].length?](https://storage.examlex.com/TB7392/11eb9782_fd81_d950_b9fe_5fe3c9ba7214_TB7392_00.jpg)
(Multiple Choice)
4.8/5
(36)
Which one of the following statements is the correct declaration for a two-dimensional array of 20 rows and 2 columns of type int?
(Multiple Choice)
4.8/5
(39)
The binary search is more efficient than the linear search, providing
(Multiple Choice)
4.8/5
(35)
Assume the array of integers values has been created.Which condition must be used in the indicated area so the loop below will assign max the largest value in values?

(Multiple Choice)
5.0/5
(33)
Identify the correct statement for defining an integer array named numarray of ten elements.
(Multiple Choice)
4.8/5
(39)
Consider the following code snippet:
Which statement is true after the main method is executed?

(Multiple Choice)
4.8/5
(39)
Showing 21 - 40 of 117
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)