
Introduction to Sets
Quiz
•
Computers
•
6th - 12th Grade
•
Hard
Whizara Teacher
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
State true or false. Multiple items with the same value can be stored as multiple items in a Java Set.
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
‘Set’ in Java is a/an:
Class
Interface
Loop
Conditional
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The Set interface in Java is implemented by which Class to create and use sets?
HashSet class
ArrayList class
List class
none of the mentioned
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
State true or false. The correct way of using a for loop for iterating through the items in a Set is:
for(int item : hash_Set)
System.out.print(item + " ");
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
Set<Integer> hash_Set = new HashSet<Integer>();
// Adding elements to the Set
hash_Set.add(1);
hash_Set.add(2);
hash_Set.add(3);
System.out.println(hash_Set(0));
1
0
2
Error, as a Set cannot be accessed using index
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
10 questions
Lesson 2 Y9 iMedia
Quiz
•
9th Grade
10 questions
JavaScript 2
Quiz
•
12th Grade
10 questions
Tables in HTML
Quiz
•
7th - 8th Grade
10 questions
What is a program slides(6:16)
Quiz
•
8th - 12th Grade
10 questions
Lesson 1 Introduction to Database System
Quiz
•
10th Grade
10 questions
Java Fundamentals
Quiz
•
12th Grade
10 questions
Exploration with Game Art
Quiz
•
9th - 12th Grade
10 questions
Informatica
Quiz
•
6th Grade
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
