Finals Review Practice
Quiz
•
Computers
•
University
•
Hard
Devon Morgan
Used 1+ times
FREE Resource
Enhance your content in a minute
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
What is the default value of an element in an array of integers in Java?
0
null
1
undefined
2.
MULTIPLE SELECT QUESTION
2 mins • 2 pts
How do you Declare an array of integers in Java?
int array[];
array int[];
int[] array;
Both A and C
3.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
What will be the output of the following code?
int[] arr = new int[5];
System.out.println(arr[2]);
null
0
2
Error
4.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Which of the following is true about arrays in Java?
The length of an array can be changed after it's created
Arrays in Java are Objects
Arrays can contain differentt ypes of data
All elements in an array must be initialized manually
5.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
What is the correct way to find the length of an Array in Java?
array.length()
array.size()
array.length
length(array)
6.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
Which of the following methods is used to add an element to an ArrayList in Java?
push()
add()
insert()
append()
7.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
What will be the output of the following code?
ArrayList<String> list = new ArrayList<>();
list.add("Hello");
list.add("My");
list.add("Name");
System.out.println(list.get(1));
null
Error
Hello
My
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
20 questions
E-commerce Chapter 1
Quiz
•
University
20 questions
Responsi PL 2021/2022
Quiz
•
University
18 questions
Programming in C language
Quiz
•
12th Grade - University
20 questions
ADMINISTRASI SISTEM JARINGAN
Quiz
•
University
20 questions
STM 2013 : FORMATIF T3-FORM & REPORT
Quiz
•
University
20 questions
Administrasi Infrastruktur Jaringan - April 2020 (1)
Quiz
•
University
20 questions
LATIHAN DASAR HTML
Quiz
•
KG - University
20 questions
Python Recap
Quiz
•
7th Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University
