7
AssignmentMultiple Choice

Project: Using Loops in a Guessing Game

Question 7 • ASC Programming, Games, Apps and Society

What does the statement below accomplish? classGradesArray = new int[25];

Answer
A
It defines an array to store 25 integers.
B
It allocates memory for the integer classGradesArray.
C
It initializes 25 integers to the value of zero.
D
It assigns the value of 25 to classGradesArray.
Previous
Next
What does the statement below accomplish…