
Finals Review Practice
Authored by Devon Morgan
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
19 questions
HTML
Quiz
•
University
20 questions
POO_BasicoyJava
Quiz
•
University
20 questions
Adding features to a Presentation
Quiz
•
4th Grade - University
20 questions
Control Structures C#
Quiz
•
University
20 questions
ĐC CNTT_CHƯƠNG 2
Quiz
•
University
20 questions
Midterm Exam Content ITEC 204
Quiz
•
University
19 questions
DBMS - Fundamentals
Quiz
•
University
20 questions
Sử dụng bảng tính Excel (21-40)
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University