Sets Review

Flashcard
•
12th Grade - University
•
Hard
Quizizz Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following statement about Set is true? A TreeSet can have null values. Set allows duplicate values. Set allows null values but only single occurrence. Set extends the Java.util.collection interface.
Back
Set extends the Java.util.collection interface.
2.
FLASHCARD QUESTION
Front
Entries are not organized as key/value pairs. Duplicate entries are rejected. Which interface of the java.util package offers the specified behavior?
Back
Set
3.
FLASHCARD QUESTION
Front
Back
[Computer, Network, Networks, Programming, Security]
4.
FLASHCARD QUESTION
Front
Back
Line 11 : Genetates NullPointer Exception
5.
FLASHCARD QUESTION
Front
What is the output of the following code?
List listNames = new ArrayList();
listNames.add("Tom");
listNames.add("Mary");
listNames.add("Peter");
String name2 = (String) listNames.get(1);
System.out.println(name2);
Back
Mary
6.
FLASHCARD QUESTION
Front
When do we use sets in java program?
Back
You want to store elements distinctly without duplication, or unique elements.
7.
FLASHCARD QUESTION
Front
What will happen if an element already present in the Set is added again?
Back
A boolean value of false will be returned, and the value will not be added to the Set
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Review Forms Flashcard

Flashcard
•
12th Grade
15 questions
ARRAYLIST - JAVA

Flashcard
•
University
14 questions
Основы LINQ

Flashcard
•
KG - University
15 questions
MANI

Flashcard
•
KG - University
18 questions
Fundamentals of data Structures & Linked list

Flashcard
•
University
19 questions
Forms Flashcard

Flashcard
•
12th Grade
17 questions
AP CS A Unit 3 Review

Flashcard
•
11th - 12th Grade
19 questions
HTML Tags Flashcard

Flashcard
•
12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade