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
Assume the method doSomething has been defined as follows:
What does the method do?

(Multiple Choice)
4.8/5
(33)
Java 7 introduced enhanced syntax for declaring array lists, which is termed
(Multiple Choice)
4.7/5
(39)
Complete the following code snippet with the correct enhanced for loop so it iterates over the array without using an index variable.

(Multiple Choice)
4.8/5
(30)
Assume the array of integers values has been created and process is a method that has a single integer parameter.Which of the following is equivalent to the loop below?

(Multiple Choice)
4.8/5
(31)
When the order of the elements is unimportant, what is the most efficient way to remove an element from an array?
(Multiple Choice)
4.8/5
(31)
What (if anything) is wrong with the following code snippet, which searches for the searchedValue variable in the array data?

(Multiple Choice)
5.0/5
(25)
Which one of the following statements is correct about the given code snippet?

(Multiple Choice)
4.9/5
(43)
Which code snippet calculates the sum of all the elements in even positions in an array?
(Multiple Choice)
5.0/5
(23)
Consider the code snippet below:
When the loop finishes what does the value of the boolean variable found indicate?

(Multiple Choice)
4.8/5
(38)
When an array myArray is only partially filled, how can the programmer keep track of the current number of elements?
(Multiple Choice)
4.7/5
(35)
Consider the following code snippet:
What is the output of the given code snippet?

(Multiple Choice)
4.9/5
(42)
Which one of the following is a valid signature of a method with an integer two-dimensional array parameter of size 10 x 10?
(Multiple Choice)
4.8/5
(40)
Showing 101 - 117 of 117
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)