
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
14 questions
Lets explore Java

Quiz
•
University
15 questions
Qûîz

Quiz
•
University
10 questions
PHP

Quiz
•
University
10 questions
0xDebug - Python

Quiz
•
University
12 questions
DS_NumPy_TEST1

Quiz
•
University
10 questions
Arrays Review

Quiz
•
11th Grade - University
15 questions
DATA STRUCTURES QUIZ

Quiz
•
University
15 questions
BASIC C PROGRAMMING QUIZ

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University