Arrays Review
Quiz
•
Computers, Mathematics
•
9th - 12th Grade
•
Hard

Adeline Finkler
Used 2+ times
FREE Resource
Enhance your content in a minute
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to create an array?
int array = int[4];
new int array = {2,3,4,5};
int [] array = new int[4]
int [] array = new int {4}
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
An array is...
an object.
a variable.
a primitive type.
a string.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which would be considered an "element" of the array below?
double [] temp = {1.2, 3.4, 5.6, 7.8};
double
temp
[]
1.2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement prints out the number 5 for this array:
int [] test = {5,4,3,2,1};
test[0];
test[1];
System.out.println(test[0]);
System.out.println(test[1]);
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How can I traverse an array?
Using a for loop.
Using a while loop.
Using an enhanced for loop.
Using an if statement.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the output be for this code:
int [] array = new int[10];
System.out.println(array[2]);
null
0
2
error
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Fill in the blank of the for loop so that it traverses the entire array.
length
i.length
names.length()
names.length
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
MIL March 8, 2023
Quiz
•
12th Grade
15 questions
SUMMATIVE TEST #5 (QUARTER 2)
Quiz
•
10th Grade
10 questions
INDEX NUMBER
Quiz
•
12th Grade
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
12 questions
Wee Word Intro
Quiz
•
7th - 12th Grade
10 questions
Desarrollo de Aplicaciones Web - Día 3
Quiz
•
10th Grade
15 questions
SOAL MATEMATIKA PEMINATAN - XII MIPA
Quiz
•
12th Grade - University
14 questions
TCP/IP & other protocols [A Level]
Quiz
•
12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
