
Arrays and Algorithms
Authored by Thomas Martinez
Computers
10th - 12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
11 questions
Programming Quiz 1
Quiz
•
11th Grade
20 questions
Operator Aritmetika dan Perbandingan
Quiz
•
10th Grade
10 questions
JavaScript 3 baco med
Quiz
•
12th Grade
16 questions
Hour_of_Code
Quiz
•
5th - 12th Grade
20 questions
Perangkat Lunak dan Struktur Pemrograman (UH 2)
Quiz
•
10th Grade
10 questions
10 câu kiểu xâu tiết 1
Quiz
•
11th Grade
11 questions
Programming basics
Quiz
•
10th - 11th Grade
13 questions
LENGUAJE C
Quiz
•
11th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
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
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Elijah McCoy: Innovations and Impact in Black History
Interactive video
•
6th - 10th Grade