Java 2D Arrays_Review

Flashcard
•
Computers
•
11th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

19 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following statements correctly declares a two-dimensional integer array? Options: int Matrix[ ] = new int[5,4];, int Matrix[ ]; Matrix = new int[5,4];, int Matrix[ ][ ] = new int[5][4];, int Matrix[ ][ ] = int[5][4];
Back
int Matrix[ ][ ] = new int[5][4];
2.
FLASHCARD QUESTION
Front
How would you get the value 6 out of the following array int[][] a = {{2, 4, 6, 8}, {1, 2, 3, 4}};? Remember each set of curly braces represents a row, or a single dimensional array. Options: a [0][3], a [1][3], c) a[0][2], d) a[2][0], e) a[3][1]
Back
a[0][2]
3.
FLASHCARD QUESTION
Front
How many columns does a have if it is created as follows: int[][] a = {{2, 4, 6, 8}, {1, 2, 3, 4}};?
Back
4
4.
FLASHCARD QUESTION
Front
Given the code, what is the value of things.length ?
Back
3
5.
FLASHCARD QUESTION
Front
Given the code, what is in values[2][1] ?
Back
7.9
6.
FLASHCARD QUESTION
Front
Given the code, what is in values[0][1] ?
Back
9.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
10 questions
❄⛄AP CSA - Unit 6 Review

Flashcard
•
9th - 12th Grade
16 questions
AP CSA Primitive Types Practice

Flashcard
•
11th Grade
15 questions
ACT Math Test

Flashcard
•
11th Grade
18 questions
Ripasso c++ - Array - 4BI

Flashcard
•
11th Grade
15 questions
AP Computer Science A Review 1

Flashcard
•
10th - 12th Grade
14 questions
AP CS ArrayLists

Flashcard
•
12th Grade
16 questions
Matrices

Flashcard
•
11th Grade
16 questions
Matrix Recovery Test

Flashcard
•
11th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade