Arrays
Quiz
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Medium
Daniel Wespetal
Used 525+ 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"};
Create a free account and access millions of resources
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 basics
Quiz
•
10th - 11th Grade
13 questions
LENGUAJE C
Quiz
•
11th Grade
11 questions
Programming Quiz 1
Quiz
•
11th Grade
10 questions
JavaScript 3 baco med
Quiz
•
12th Grade
15 questions
MIT APP - QUIZ
Quiz
•
10th Grade
10 questions
Staff CPD Internet Safety and AI Quizizz
Quiz
•
10th Grade
10 questions
ICT as Platform for Change
Quiz
•
11th - 12th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Thanksgiving Trivia Challenge: Test Your Knowledge!
Interactive video
•
6th - 10th Grade
36 questions
Benchmark 2 Review (LEAP)
Quiz
•
11th Grade
