Unit 6 Test Review - Arrays

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following is FALSE about arrays on Java: A java array is always an object; Arrays in Java are always initialized to have values of 0; Length of array can be changed after creation of array
Back
Length of array can be changed after creation of array
2.
FLASHCARD QUESTION
Front
Find the output
class Test {
public static void main(String args[]) {
int arr[2];
System.out.println(arr[0]);
System.out.println(arr[1]);
}
}
Back
Compile error
3.
FLASHCARD QUESTION
Front
Find the output
class Test {
public static void main(String args[]) {
int [] arr = new int[2];
System.out.println(arr[0]);
System.out.println(arr[1]);
}
}
Back
0
0
4.
FLASHCARD QUESTION
Front
What is the length of the following array: int [] data = { 12, 34, 9, 0, -62, 88 };
Back
6
5.
FLASHCARD QUESTION
Front
What will happen when executing the following code?
class Demo1 { public static void main(String args[]) { int [] i = new int[10]; System.out.println(i[10]); } }
Back
Out-of-bounds exception
6.
FLASHCARD QUESTION
Front
_________________ is a collection of elements used to store the same type of data.
Back
Array
7.
FLASHCARD QUESTION
Front
What are the legal indexes for the array ar
, given the following declaration:
int[] ar = {2, 4, 6, 8 }?
Back
0, 1, 2, 3
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Film Script Anatomy & Storyboards

Flashcard
•
9th - 12th Grade
13 questions
Unit 7: Applications of Definite Integrals Review

Flashcard
•
11th - 12th Grade
23 questions
Intro to Algorithms

Flashcard
•
9th - 12th Grade
10 questions
Arrays

Flashcard
•
10th - 12th Grade
19 questions
Java 2D Arrays_Review

Flashcard
•
11th Grade
15 questions
Нысаналы мектеп информатика 3-аралық тест

Flashcard
•
KG - University
12 questions
AP CSP Loops Practice

Flashcard
•
9th - 12th Grade
16 questions
Graphing Linear Equations

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade