Sets Review

Flashcard
•
12th Grade - University
•
Hard
Wayground 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
Sound Travel

Flashcard
•
KG
16 questions
Python Basics Unit 3.1

Flashcard
•
12th Grade
14 questions
Halloween Java

Flashcard
•
12th Grade
16 questions
Breakfast Foods

Flashcard
•
KG - University
10 questions
04 - Searching Flashcards

Flashcard
•
University
14 questions
AP CS ArrayLists

Flashcard
•
12th Grade
15 questions
Sound Wave

Flashcard
•
University
15 questions
Introduction to Java

Flashcard
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie

Quiz
•
5th - 12th Grade
20 questions
Macromolecules

Quiz
•
9th - 12th Grade