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
Create a free account and access millions of resources
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
Programming Concepts in C - Quiz-II
Quiz
ā¢
University
18 questions
PBO Inheritance Episode 2
Quiz
ā¢
University
17 questions
VISUAL BASIC
Quiz
ā¢
University
23 questions
H446 Networks and Web Technologies
Quiz
ā¢
12th Grade - University
20 questions
CETA'S Quizzard
Quiz
ā¢
University
18 questions
AI 900 - pt 1
Quiz
ā¢
University
20 questions
Programming2
Quiz
ā¢
University
18 questions
Lenguaje de Definición de Datos
Quiz
ā¢
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
ā¢
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
ā¢
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
ā¢
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
ā¢
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
ā¢
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
ā¢
3rd Grade
14 questions
Christmas Trivia
Quiz
ā¢
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
ā¢
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
ā¢
8th Grade - Professio...
20 questions
christmas songs
Quiz
ā¢
KG - University
20 questions
Holiday Trivia
Quiz
ā¢
9th Grade - University
15 questions
Holiday Movies
Quiz
ā¢
University
14 questions
Christmas Trivia
Quiz
ā¢
3rd Grade - University
20 questions
Christmas Trivia
Quiz
ā¢
University
8 questions
5th, Unit 4, Lesson 8
Lesson
ā¢
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
ā¢
University
