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? (What is the default value provided by Java).
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
8 questions
Python Casting & Data Types

Flashcard
•
9th - 12th Grade
13 questions
Functions and Parameters

Flashcard
•
9th - 12th Grade
5 questions
Arrays

Flashcard
•
11th Grade
11 questions
for and while loops level 2

Flashcard
•
9th - 12th Grade
10 questions
CODEHS Looping Unit 5 Review

Flashcard
•
9th - 12th Grade
9 questions
Java For Loops

Flashcard
•
9th - 12th Grade
9 questions
AP CSP List Review

Flashcard
•
9th - 12th Grade
11 questions
Java Boolean Statements

Flashcard
•
11th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

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

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade