
Java Arrays Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Fidaa Abed
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an array in Java?
A collection of related data items of the same type
A dynamic data structure
A function to manipulate strings
A type of loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in an array?
1
0
-1
The index is user-defined
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does an array object store in its length instance variable?
The total number of methods
The size of the array
The number of elements in the array
The data type of the array
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to create an array in Java?
array
new
static
class
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about arrays in Java?
Arrays can have elements of different types
Arrays are of a fixed length once created
Arrays do not require an index to access elements
Arrays are not objects in Java
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the enhanced for loop avoid?
Null pointer exception
Passing references
Array index out of bounds
All exceptions
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these types is not a primitive type in Java?
int
char
boolean
String
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Module 1.4 Questions

Quiz
•
12th Grade - University
20 questions
APCS A - Array 6.1,6.2,6.3,6.

Quiz
•
9th - 12th Grade
20 questions
Java, part I

Quiz
•
11th Grade - University
20 questions
JDVP Activity

Quiz
•
12th Grade - University
17 questions
1.1.3. Input, Output and Storage

Quiz
•
12th Grade
25 questions
arrays and strings in java

Quiz
•
12th Grade
16 questions
QUIZ RPL 3 ke 2

Quiz
•
12th Grade
15 questions
Area and Arrays

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

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade