
java-collections(part-I)-vlits
Quiz
•
Computers
•
1st Grade
•
Hard
kolla vivek
Used 29+ times
FREE Resource
Enhance your content
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these packages contain all the collection classes?
java.lang
java.util
java.net
java.awt
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these classes is not part of Java’s collection framework?
Maps
Array
Stack
Queue
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of this interface is not a part of Java’s collection framework?
List
Set
SortedMap
SortedList
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these methods deletes all the elements from invoking collection?
clear()
reset()
delete()
refresh()
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is Collection in Java?
A group of objects
A group of classes
A group of interfaces
None of the mentioned
6.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the output of this program?
import java.util.*;
class Array
{
public static void main(String args[]){
int array[] = new int [5];
for (int i = 5; i > 0; i--)
array[5-i] = i;
Arrays.fill(array, 1, 4, 8);
for (int i = 0; i < 5 ; i++)
System.out.print(array[i]);
}
}
12885
12845
58881
54881
7.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the output of this program?
import java.util.*;
class Bitset
{
public static void main(String args[]){
BitSet obj = new BitSet(5);
for (int i = 0; i < 5; ++i)
obj.set(i);
obj.clear(2);
System.out.print(obj);
}
}
{0, 1, 3, 4}
{0, 1, 2, 4}
{0, 1, 2, 3, 4}
{0, 0, 0, 3, 4}
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
26 questions
QUIZ 2 YEAR 1
Quiz
•
1st Grade
26 questions
BTEC DIT Component 2 Super Quiz
Quiz
•
1st Grade - University
28 questions
My Hero Academia (Boku No Hero Academia)
Quiz
•
KG - 12th Grade
25 questions
1st Quarterly Exam in Computer
Quiz
•
1st Grade
30 questions
Christmas Jokes
Quiz
•
1st - 9th Grade
30 questions
G2 - MS Paint Review
Quiz
•
1st - 5th Grade
25 questions
Ôn tập cuối năm tin 3 KNTT
Quiz
•
1st - 5th Grade
27 questions
Practica de Mecanografía 2023 lv1
Quiz
•
1st - 5th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
18 questions
D189 1st Grade OG 1c Concept 37-38
Quiz
•
1st Grade
20 questions
addition
Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences
Quiz
•
1st - 3rd Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Exploring Force and Motion Concepts
Interactive video
•
1st - 5th Grade
10 questions
Exploring Properties of Matter
Interactive video
•
1st - 5th Grade
5 questions
Sense and Response
Quiz
•
1st Grade