Arrays

Flashcard
•
Computers
•
10th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println("Number: " + numArray[2]);
Back
Number: 4
2.
FLASHCARD QUESTION
Front
What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println("Number: " + numArray[0]);
Back
Number: 2
3.
FLASHCARD QUESTION
Front
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]);
Back
Number: 2
4.
FLASHCARD QUESTION
Front
What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println(numArray.length);
Back
6
5.
FLASHCARD QUESTION
Front
What is the correct way to initialize an array with 10 positions? Options: int numbers = new int[10];, int[] numbers = new int[];, int[10] numbers = new int[10];, int[] numbers = new int[10];
Back
int[] numbers = new int[10];
6.
FLASHCARD QUESTION
Front
What value is stored in each of the 5 positions in this array? int[] numbers = new int[5];
Back
0
7.
FLASHCARD QUESTION
Front
What value is at index 1 in this array? String[] names = {"Mack", "Dennis", "Dee", "Charlie"};
Back
Dennis
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Java Boolean Statements

Flashcard
•
11th Grade
13 questions
Functions and Parameters

Flashcard
•
9th - 12th Grade
8 questions
Unit #4- Loops and Nested Loops

Flashcard
•
9th - 12th Grade
9 questions
CSA Semester 2 Final

Flashcard
•
11th - 12th Grade
5 questions
Arrays

Flashcard
•
11th Grade
8 questions
java while loop

Flashcard
•
9th - 12th Grade
10 questions
If/Else

Flashcard
•
9th - 12th Grade
7 questions
Java Basics #2

Flashcard
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade