Array
Quiz
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Easy
Charles Martinez
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println(numArray[2]);
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println(numArray[0]);
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println(numArray[numArray.length - 1]);
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println(numArray.length);
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct way to initialize an integer array with 10 positions?
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What value is stored in each of the 5 positions in this array? (What is the default value provided by Java?).
int[] numbers = new int[10];
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What value is at index 1 in this array? String[] names = {"Mack", "Dennis", "Dee", "Charlie"};
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
16 questions
Python Basics
Quiz
•
KG - University
20 questions
Cambridge Nationals LO6
Quiz
•
10th Grade
20 questions
Python Recap
Quiz
•
7th Grade - University
17 questions
"switch" Java Statement - 1
Quiz
•
9th - 10th Grade
10 questions
BP TIK 1
Quiz
•
10th Grade
15 questions
Lua Review Corona SDK with Notepad++
Quiz
•
10th - 12th Grade
15 questions
PW - Corte 2
Quiz
•
12th Grade
12 questions
10 Клас Python tests
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
