Arrays
Quiz
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Medium
Daniel Wespetal
Used 527+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println("Number: " + numArray[2]);
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println("Number: " + numArray[0]);
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println("Number: " + numArray[numArray.length - 1]);
4.
MULTIPLE CHOICE QUESTION
2 mins • 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
2 mins • 1 pt
What is the correct way to initialize an array with 10 positions?
6.
MULTIPLE CHOICE QUESTION
2 mins • 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[5];
7.
MULTIPLE CHOICE QUESTION
2 mins • 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
15 questions
Databases
Quiz
•
11th Grade
15 questions
Ôn tập kỳ 2 tin 6
Quiz
•
1st - 12th Grade
15 questions
Начала программирования на языке Паскаль
Quiz
•
8th - 11th Grade
10 questions
MS PowerPoint
Quiz
•
11th Grade
10 questions
Managing and Formatting Word Documents
Quiz
•
12th Grade
15 questions
11° Evaluación bimestral de informática
Quiz
•
11th Grade
10 questions
C_หน่วย 2
Quiz
•
10th Grade
10 questions
Python Testing
Quiz
•
9th - 12th 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
