
AJP-E2
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
RAVIKANTH K
Used 2+ 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 correct way to create an ArrayList of Strings?
ArrayList<String> list = new ArrayList[];
ArrayList list = new List<String>();
ArrayList list = new ArrayList<String>();
ArrayList<String> list = new ArrayList<>();
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
ArrayList<String> list = new ArrayList<>();
list.add("Java");
list.add("Python");
System.out.println(list.remove(0));
Java
Python
true
Compilation error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is the correct way to iterate over elements in an ArrayList?
for (int i = 0; i < list.size(); i++)
for (int i : list)
for (Object obj : list)
for (Iterator it = list.iterator(); it.hasNext();
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which collection class provides a way to store elements in key-value pairs?
ArrayList
Maps
LinkedList
All
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class Main {
public static void main(String args[]) {
int x = 2;
int y = 0;
for ( ; y < 10; y++) {
if (y % x == 0)
continue;
else if (y == 8)
break;
else
System.out.print(y + " ");
}
}
}
1 3 5 7
1 3 5 7 9
8
None
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following collection classes can be used to store unique objects?
HashSet
LinkedHashMap
ArrayList
ALL
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods is used to add an element to the end of an ArrayList?
addLast()
addEnd()
add()
append()
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
15 questions
Sec+ CH.1 Review Test
Quiz
•
Professional Development
10 questions
C++ quiz
Quiz
•
10th Grade - Professi...
12 questions
React/Javascript Quizz
Quiz
•
Professional Development
10 questions
Friday Fun
Quiz
•
Professional Development
10 questions
Bundlers
Quiz
•
Professional Development
15 questions
Sec+ Quiz - 2
Quiz
•
Professional Development
10 questions
Technical Fault Diagnosis
Quiz
•
Professional Development
10 questions
IT General Control
Quiz
•
Professional Development
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...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
