AnswersASC Programming Games Apps and SocietyProject: Using Loops in a Guessing Game

Project: Using Loops in a Guessing Game Answers

11 verified answers1 views
2
Free Preview

Which line of Java code correctly declares an array of character variables?

A
variableArray[10] = character;
B
var Array[200] := byte;
C
string[ ] variableArray;
D
char[ ] variableArray;
5

Which statement describes the index number of an array?

A
separates each element
B
identifies each element
C
categorizes each element
D
names each element
6

How do the statements below differ in purpose? Statement A: int[ ] trainArray; Statement B: trainArray = new int [10];

A
Statement A defines the size of the array, and Statement B declares the array in memory.
B
Statement A declares the array in memory, and Statement B defines the size of the array.
C
Statement A declares the array in memory, and Statement B declares the array as 10 integers.
D
Statement A declares the array as 10 integers, and Statement B declares the array in memory.
7

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

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.
11

Match each word to its correct meaning.

Answer not available

Did you find these answers helpful?

Project: Using Loops in a Guessing Game Answers…