Unit 6 Vocabulary

Unit 6 Vocabulary

12 Qs

quiz-placeholder

Similar activities

ASSESSMENT PERFORMANCE MANAGEMENT

ASSESSMENT PERFORMANCE MANAGEMENT

KG - University

12 Qs

Forensics Ch. 6 Fingerprints Vocabulary (15)

Forensics Ch. 6 Fingerprints Vocabulary (15)

9th - 12th Grade

15 Qs

Forensics Ch. 6 Fingerprints Vocabulary (15)

Forensics Ch. 6 Fingerprints Vocabulary (15)

KG - University

15 Qs

Lesson 1 Summative Assessment

Lesson 1 Summative Assessment

KG - University

16 Qs

Unit 6 Test

Unit 6 Test

KG - University

15 Qs

Skills for Real World Survival Unit Review

Skills for Real World Survival Unit Review

KG - University

10 Qs

#17 Arrays, Records, Tuples and Hash Tables

#17 Arrays, Records, Tuples and Hash Tables

11th - 12th Grade

15 Qs

Reading Informational Text 8

Reading Informational Text 8

KG - University

15 Qs

Unit 6 Vocabulary

Unit 6 Vocabulary

Assessment

Quiz

others

Easy

Created by

Jason King

Used 1+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Array
each Loop - Used to loop through all elements of an array. Each time through the loop the loop variable will be the next element in the array starting with the element at index 0, then index 1, then index 2, etc.
used to create a class method, which is a method that can be called using the class name like Math.abs(-3).
An array can hold many items (elements) of the same type. You can access an item (element) at an index and set an item (element) at an index.
To declare an array specify the type of elements that will be stored in the array, then ([]) to show that it is an array of that type, then at least one space, and then a name for the array. Examples: int[] highScores; String[] names;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Array Declaration
To declare an array specify the type of elements that will be stored in the array, then ([]) to show that it is an array of that type, then at least one space, and then a name for the array. Examples: int[] highScores; String[] names;
A method that can be called on the class. It is declared using the static keyword. An example is Math.abs(-3).
An array can hold many items (elements) of the same type. You can access an item (element) at an index and set an item (element) at an index.
starts both a general for loop and a for-each loop. The syntax for a for each loop is for (type variable : array). Each time through the loop the variable will take on the next value in the array. The first time through the loop it will hold the value at index 0, then the value at index 1, then the value at index 2, etc.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Array Creation
An error that means that you tried to access an element of the array that doesn't exist maybe by doing arr[arr.length]. The first valid indices is 0 and the last is the length minus one.
A specific element can be referenced by using the name of the array and the element's index in square brackets. Example: scores[3] will return the 4th element (since index starts at 0, not 1). To reference the last element in an array, use array[array.length - 1]
starts both a general for loop and a for-each loop. The syntax for a for each loop is for (type variable : array). Each time through the loop the variable will take on the next value in the array. The first time through the loop it will hold the value at index 0, then the value at index 1, then the value at index 2, etc.
To create an array type the name and an equals sign then use the new keyword, followed by a space, then the type, and then in square brackets the size of the array (the number of elements it can hold). Example: names = new String[5];

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Array Index
You can access and set values in an array using an index. The first element in an array called arr is at index 0 arr[0]. The last element in an array is at the length minus one - arr[arr.length - 1].
starts both a general for loop and a for-each loop. The syntax for a for each loop is for (type variable : array). Each time through the loop the variable will take on the next value in the array. The first time through the loop it will hold the value at index 0, then the value at index 1, then the value at index 2, etc.
The length of an array is the number of elements it can hold. Use the public length field to get the length of the array. Example: given int[] scores = {1,2,2,1,3,1};, scores.length equals 6.
An array can hold many items (elements) of the same type. You can access an item (element) at an index and set an item (element) at an index.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Array Initialization
To create an array type the name and an equals sign then use the new keyword, followed by a space, then the type, and then in square brackets the size of the array (the number of elements it can hold). Example: names = new String[5];
You can also initialize (set) the values in the array when you 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: int[] highScores = {99,98,98,88,68};
You can access and set values in an array using an index. The first element in an array called arr is at index 0 arr[0]. The last element in an array is at the length minus one - arr[arr.length - 1].
An array can hold many items (elements) of the same type. You can access an item (element) at an index and set an item (element) at an index.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Array Length
A method that can be called on the class. It is declared using the static keyword. An example is Math.abs(-3).
The length of an array is the number of elements it can hold. Use the public length field to get the length of the array. Example: given int[] scores = {1,2,2,1,3,1};, scores.length equals 6.
An error that means that you tried to access an element of the array that doesn't exist maybe by doing arr[arr.length]. The first valid indices is 0 and the last is the length minus one.
An array can hold many items (elements) of the same type. You can access an item (element) at an index and set an item (element) at an index.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Class Method
The length of an array is the number of elements it can hold. Use the public length field to get the length of the array. Example: given int[] scores = {1,2,2,1,3,1};, scores.length equals 6.
starts both a general for loop and a for-each loop. The syntax for a for each loop is for (type variable : array). Each time through the loop the variable will take on the next value in the array. The first time through the loop it will hold the value at index 0, then the value at index 1, then the value at index 2, etc.
A method that can be called on the class. It is declared using the static keyword. An example is Math.abs(-3).
To create an array type the name and an equals sign then use the new keyword, followed by a space, then the type, and then in square brackets the size of the array (the number of elements it can hold). Example: names = new String[5];

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?