Arrays and Algorithms
Quiz
•
Computers
•
10th - 12th Grade
•
Hard
Thomas Martinez
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
20 questions
Introducción a las bases de datos
Quiz
•
12th Grade
13 questions
Arrays in Swift
Quiz
•
10th - 12th Grade
15 questions
SENATIC Parcial Guía 3_PseInt
Quiz
•
10th Grade - University
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
20 questions
Quiz 4
Quiz
•
1st - 10th Grade
20 questions
QUIZ BAB 4: SISTEM OPERASI
Quiz
•
8th Grade - University
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
