
Java Array
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Medium
Adlina Anwar
Used 23+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of an array element of type int in Java?
0
null
undefined
0.0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you find the length of an array in Java?
arr.length()
arr.length
arr.size()
arr.capacity()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the wrong way to creates an array of strings?
A) String[] arr = new String[5];
B) String arr = new String[5];
C) String[] arr; arr = new String[5];
D) both A and C
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
1
4
3
5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you initialize an array with the values 1, 2, 3, 4, and 5?
int[] arr = {1, 2, 3, 4, 5};
int[] arr = new int[5]
int arr[] = {1, 2, 3, 4, 5};
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in an array?
-1
1
0
2
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print?
1
2
3
4
5
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
13 questions
Chapter 7: Information Systems
Quiz
•
University
10 questions
Latsol
Quiz
•
10th Grade - University
15 questions
Data Literacy Quizizz
Quiz
•
6th Grade - University
15 questions
3.1(a)(b) - Lecture
Quiz
•
University
15 questions
PPL 223 - (QUIZ 3) Data Types and Structures
Quiz
•
University
10 questions
CHAPTER 2: SYSTEM ANALYSIS AND DESIGN
Quiz
•
University
15 questions
Q6. Cybersecurity Best Practices
Quiz
•
University
12 questions
Borders and Shades in Word 2010 Quiz
Quiz
•
10th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
