QUESTION 1: An array of 1000 integers has been created. What is the largest integer that can be used as an index to the array? A) 1001 B) 1000 C) 999 QUESTION 2: Consider the declaration: int v[] = new int[1]; What is the index of the last element of this array? A) 0 B) 1 C) 2
LANGUAGE: JAVA
CHALLENGE:
QUESTION 1:
An array of 1000 integers has been created. What is the largest integer that can be used as an index to the array?
A) 1001
B) 1000
C) 999
QUESTION 2:
Consider the declaration: int v[] = new int[1]; What is the index of the last element of this array?
A) 0
B) 1
C) 2
SOLUTION:
Question 1: 999 Question 2: 0
Posted in Java, Learn To Code