Computer Applications
Which element is num[9] of array num?
- 8th
- 9th
- 10th
- 11th
Java Arrays
14 Likes
Answer
10th
Reason — Array index begins from 0 to size - 1. Thus, num[0] is the 1st element, num[1] is the 2nd element, num[2] is the 3rd element and so on. So, num[9] is actually the 10th element of the array.
Answered By
11 Likes
Related Questions
JVM converts bytecode directly into
- machine code
- another byte code
- high level code
- None of these
Which of the following statements is true?
- Binary search is less efficient than linear search.
- Binary search is more efficient than linear search.
- Binary search is as efficient as linear search.
- None of the above
What is the value returned by function compareTo( ), if the invoking string is less than the string compared?
- zero
- value less than zero
- value greater than zero
- None of the above
…………… class is used to convert a primitive data type to its corresponding object.
- String
- Wrapper
- System
- Math