APCS A - Array 6.1,6.2,6.3,6.
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Easy
Wayground Content
Used 6+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about arrays in Java? They are fixed in size, They are dynamic, They can grow automatically, You can add/remove elements, No index-based access
They are fixed in size
They are dynamic
They can grow automatically
You can add/remove elements
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of an int array element in Java?
-1
0
null
undefined
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can you store null in an object array?
Yes
No
Only in certain programming languages
Only if the array is initialized
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How are arrays stored in memory in Java?
Stack
Heap
Register
Cache
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which exception is thrown for accessing an array index out of bounds?
IndexOutOfRangeException
OutOfMemoryError
ArrayIndexOutOfBoundsException
IllegalArgumentException
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you loop through an array?
for (int i : arr)
for (i = 0; i < arr.length; i++)
foreach (int i in arr)
for (int i = 0; i < arr.size(); i++)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you reverse an array in Java?
Using the reverse() method
Custom code or loop
Using the sort() method
Using the shuffle() method
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Introducción a las bases de datos
Quiz
•
12th Grade
16 questions
Sains Komputer Tingkatan 4 - 1.3.1 Menjelaskan hubungan
Quiz
•
10th - 12th Grade
15 questions
Identify the Line with Syntax Error
Quiz
•
10th - 11th Grade
17 questions
Greenfoot
Quiz
•
10th - 12th Grade
20 questions
QUIZ BAB 4: SISTEM OPERASI
Quiz
•
8th Grade - University
15 questions
L3...JavaScript - Introducción
Quiz
•
9th Grade
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
20 questions
KELAS 7 1
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
