Which of the following array declarations are invalid?
A) int[] grades = new int[5];
B) int grades[] = new int[5];
C) int[] grades = { 91, 83, 42, 100, 77 };
D) all of the above are valid
E) none of the above are valid
Correct Answer:
Verified
Q1: An array declared as an int[] can
Q2: In Java, array indexes begin at 0
Q3: The foreach loop can be used to
Q4: Which of the statements is true about
Q6: Every Java array is a(n) _, so
Q7: What is the precedence of the index
Q8: Suppose we have an array of String
Q9: In Java, array indexes always begin at
Q10: Which of the following statements will assign
Q11: Which of the following statements best describes
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents