
Java Arrays

Quiz
•
Computers
•
University
•
Medium
Ms N Suganya CSE - 2700
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is missing in the following array declaration?___[] arr;
int
float
double
char
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is missing in the following array initialization?int[] arr = ___;
{1,2,3}
new int[] {1, 2, 3}
new int[3]
new int()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is missing in the following array creation?int[] arr = new int[___];
size
10
length
size()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the error in the following code?int[] arr = {1, 2, 3};
System.out.println(arr[3]);
ArrayIndexOutOfBoundsException
NullPointerException
Syntax Error
No Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is missing in the following multi-dimensional array declaration?int[][] arr = new int[3][___];
3
size
columns
length
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the error in the following code?int[] arr;
arr[0] = 10;
ArrayIndexOutOfBoundsException
NullPointerException
Uninitialized Array Error
No Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is missing in the following array element assignment?int[] arr = new int[5];
arr[2] = ___;
5
10
arr[0]
all of the above
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Basics of C

Quiz
•
University
10 questions
Structure in C

Quiz
•
University
10 questions
DSA(UNIT 1) Test 1

Quiz
•
University
10 questions
Java Arrays

Quiz
•
University
12 questions
Arrays C++

Quiz
•
University
12 questions
Python Quiz 1.6

Quiz
•
University
15 questions
ARRAYS AND FUNCTIONS

Quiz
•
University
12 questions
JavaScript Quiz

Quiz
•
University
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
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University