
Data Structure and Algorithm 1B
Authored by sirnil undefined
Information Technology (IT)
Professional Development
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
100 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is part of the Java Collections Framework?
String
Array
ArrayList
BufferedReader
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the List interface in Java guarantee?
No duplicates and unordered elements
Unique elements only
Ordered collection with duplicates allowed
Sorted collection by default
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default initial capacity of an ArrayList in Java?
5
8
10
0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to sort a List in Java using natural ordering?
Collections.sort(list)
list.sort()
list.sortByNaturalOrder()
Arrays.sortList()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid implementation of the Set interface?
TreeSet
HashSet
LinkedHashSet
ArrayList
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of add() operation in HashSet (on average)?
O(n)
O(1)
O(log n)
O(n log n)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which class allows duplicate elements and maintains insertion order?
HashSet
TreeSet
ArrayList
HashMap
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
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
15 questions
LOTE_SPN2 5WEEK3 Day 2 Itinerary
Quiz
•
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
42 questions
LOTE_SPN2 5WEEK2 Day 4 We They Actividad 3
Quiz
•
Professional Development
6 questions
Copy of G5_U6_L3_22-23
Lesson
•
KG - Professional Dev...
20 questions
Employability Skills
Quiz
•
Professional Development