
java-collections(part-I)-vlits
Authored by kolla vivek
Computers
1st Grade
Used 29+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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}
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
25 questions
Quis Struktur Data
Quiz
•
1st - 5th Grade
25 questions
class 1 uses of computer
Quiz
•
1st Grade
27 questions
Preguntas de Scratch
Quiz
•
1st - 12th Grade
26 questions
Type the Letter A-Z
Quiz
•
1st - 5th Grade
30 questions
Parts of Computers
Quiz
•
1st Grade
25 questions
Typing 101
Quiz
•
1st - 4th Grade
25 questions
Kuiz ICT Pengaturcaraan
Quiz
•
1st - 12th Grade
25 questions
Episodio V - El Imperio contraataca Primary
Quiz
•
1st - 5th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Life Cycle of a Frog
Quiz
•
1st - 2nd Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
100th Day of School 1st/2nd
Quiz
•
1st - 2nd Grade
15 questions
Reading Comprehension
Quiz
•
1st - 5th Grade
10 questions
Identifying Physical and Chemical Changes
Interactive video
•
1st - 5th Grade
10 questions
Exploring the American Revolution
Interactive video
•
1st - 5th Grade