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
Interval and Set Builder Notation

Flashcard
•
11th Grade
15 questions
Winter Movies!

Flashcard
•
Professional Development
15 questions
Solving Systems of Inequalities

Flashcard
•
10th - 12th Grade
15 questions
"How the Grinch Stole Christmas" by Dr Suess

Flashcard
•
KG
15 questions
Calculus AB Final Review (Semester 1)

Flashcard
•
11th Grade - University
16 questions
Stationary Waves/Standing Waves

Flashcard
•
12th Grade
15 questions
Pulley Problems | AP Physics 1

Flashcard
•
12th Grade
13 questions
AP CSA Unit 4 Review

Flashcard
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade