Unit 8 Vocabulary

Unit 8 Vocabulary

9 Qs

quiz-placeholder

Similar activities

Unit 1 Vocabulary

Unit 1 Vocabulary

KG - University

12 Qs

3.OA.1

3.OA.1

KG - University

14 Qs

Assessment

Assessment

KG - University

10 Qs

CL 5-2.1 Introduction to MS Excel

CL 5-2.1 Introduction to MS Excel

KG - University

10 Qs

Magazine Layout Terms Quiz

Magazine Layout Terms Quiz

KG - University

10 Qs

Math Benchmark Trimester 1

Math Benchmark Trimester 1

KG - University

12 Qs

NLP Lecture II

NLP Lecture II

KG - University

9 Qs

Unit 8 Vocabulary

Unit 8 Vocabulary

Assessment

Quiz

others

Easy

Created by

Jason King

Used 1+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2d Array
The number of columns (or width) is the length of the inner array. For an array arr use arr[0].length to get the number of columns.
This happens when a loop goes beyond the last valid index in an array. Remember that the last valid row index is arr.length - 1. The last valid column index is arr[0].length - 1.
A for loop inside of another for loop. These are used to loop through all the elements in a 2d array. One loop can work through the rows and the other the columns.
An array that holds items in a two dimensional grid. You can think of it as storing items in rows and columns (like a bingo card or battleship game). You can access an item (element) at a given row and column index.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2d Array Declaration
You can also initialize (set) the values in the array when you first create it. In this case you don't need to specify the size of the array, it will be determined from the number of values that you specify. Example: String[][] seatingInfo = { {"Jamal", "Maria"}, {"Jake", "Suzy"}, {"Emma", "Luke"}}; This will create a 2d array with 3 rows and 2 columns.
The number of rows (or height) is the length of the outer array. For an array arr use arr.length to get the number of rows in the array.
The number of columns (or width) is the length of the inner array. For an array arr use arr[0].length to get the number of columns.
To declare an array, specify the type of elements that will be stored in the array, then ([][]) to show that it is a 2d array of that type, then at least one space, and then a name for the array. Examples: int[][] seats; String[][] seatingChart;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2d Array Creation
To create a 2d array, type the name and an equals sign then use the new keyword, followed by a space, then the type, and then [numRows][numCols]. Example: seatingChart = new String[5][4];. This will have 5 rows and 4 columns.
To declare an array, specify the type of elements that will be stored in the array, then ([][]) to show that it is a 2d array of that type, then at least one space, and then a name for the array. Examples: int[][] seats; String[][] seatingChart;
This happens when a loop goes beyond the last valid index in an array. Remember that the last valid row index is arr.length - 1. The last valid column index is arr[0].length - 1.
An array that holds items in a two dimensional grid. You can think of it as storing items in rows and columns (like a bingo card or battleship game). You can access an item (element) at a given row and column index.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2d Array Index
To create a 2d array, type the name and an equals sign then use the new keyword, followed by a space, then the type, and then [numRows][numCols]. Example: seatingChart = new String[5][4];. This will have 5 rows and 4 columns.
You can access and set values in a 2d array using the row and column index. The first element in an array called arr is at row 0 and column 0 arr[0][0].
The number of rows (or height) is the length of the outer array. For an array arr use arr.length to get the number of rows in the array.
An array that holds items in a two dimensional grid. You can think of it as storing items in rows and columns (like a bingo card or battleship game). You can access an item (element) at a given row and column index.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2d Array Initialization
You can also initialize (set) the values in the array when you first create it. In this case you don't need to specify the size of the array, it will be determined from the number of values that you specify. Example: String[][] seatingInfo = { {"Jamal", "Maria"}, {"Jake", "Suzy"}, {"Emma", "Luke"}}; This will create a 2d array with 3 rows and 2 columns.
To create a 2d array, type the name and an equals sign then use the new keyword, followed by a space, then the type, and then [numRows][numCols]. Example: seatingChart = new String[5][4];. This will have 5 rows and 4 columns.
The number of columns (or width) is the length of the inner array. For an array arr use arr[0].length to get the number of columns.
To declare an array, specify the type of elements that will be stored in the array, then ([][]) to show that it is a 2d array of that type, then at least one space, and then a name for the array. Examples: int[][] seats; String[][] seatingChart;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2d Array Number of Rows
To declare an array, specify the type of elements that will be stored in the array, then ([][]) to show that it is a 2d array of that type, then at least one space, and then a name for the array. Examples: int[][] seats; String[][] seatingChart;
The number of rows (or height) is the length of the outer array. For an array arr use arr.length to get the number of rows in the array.
This happens when a loop goes beyond the last valid index in an array. Remember that the last valid row index is arr.length - 1. The last valid column index is arr[0].length - 1.
You can access and set values in a 2d array using the row and column index. The first element in an array called arr is at row 0 and column 0 arr[0][0].

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2d Array Number of Columns
To declare an array, specify the type of elements that will be stored in the array, then ([][]) to show that it is a 2d array of that type, then at least one space, and then a name for the array. Examples: int[][] seats; String[][] seatingChart;
The number of columns (or width) is the length of the inner array. For an array arr use arr[0].length to get the number of columns.
You can access and set values in a 2d array using the row and column index. The first element in an array called arr is at row 0 and column 0 arr[0][0].
An array that holds items in a two dimensional grid. You can think of it as storing items in rows and columns (like a bingo card or battleship game). You can access an item (element) at a given row and column index.

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

nested for loop
This happens when a loop goes beyond the last valid index in an array. Remember that the last valid row index is arr.length - 1. The last valid column index is arr[0].length - 1.
A for loop inside of another for loop. These are used to loop through all the elements in a 2d array. One loop can work through the rows and the other the columns.
You can also initialize (set) the values in the array when you first create it. In this case you don't need to specify the size of the array, it will be determined from the number of values that you specify. Example: String[][] seatingInfo = { {"Jamal", "Maria"}, {"Jake", "Suzy"}, {"Emma", "Luke"}}; This will create a 2d array with 3 rows and 2 columns.
An array that holds items in a two dimensional grid. You can think of it as storing items in rows and columns (like a bingo card or battleship game). You can access an item (element) at a given row and column index.

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

out of bounds error
A for loop inside of another for loop. These are used to loop through all the elements in a 2d array. One loop can work through the rows and the other the columns.
The number of columns (or width) is the length of the inner array. For an array arr use arr[0].length to get the number of columns.
This happens when a loop goes beyond the last valid index in an array. Remember that the last valid row index is arr.length - 1. The last valid column index is arr[0].length - 1.
To declare an array, specify the type of elements that will be stored in the array, then ([][]) to show that it is a 2d array of that type, then at least one space, and then a name for the array. Examples: int[][] seats; String[][] seatingChart;