Unit 4 - io, collections_java

Quiz
•
Professional Development
•
University
•
Hard
Vijayakumar R
Used 4+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used for reading bytes from a file in Java?
A) readBytes()
B) fileRead()
C) read()
D) getBytes()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a method of the Set interface?
A) add()
B) get()
C) remove()
D) iterator()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which class would you use to write character streams in Java?
A) FileOutputStream
B) BufferedWriter
C) InputStreamReader
D) ByteBuffer
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to ensure that a collection retains the order of its elements as they were added, which implementation would be most appropriate?
A) HashSet
B) LinkedHashSet
C) TreeSet
D) PriorityQueue
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To remove duplicates from a list while maintaining the element order, which collection type should you convert the list into?
A) HashSet
B) LinkedHashSet
C) TreeSet
D) PriorityQueue
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You need to implement a FIFO (First-In-First-Out) structure. Which collection interface provides this capability?
A) Set
B) List
C) Queue
D) Map
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You have a SortedSet of timestamps. You need to retrieve and remove the earliest timestamp. Which methods should you use?
A) getFirst() and removeFirst()
B) first() and remove()
C) lowest() and dequeue()
D) earliest() and delete()
Create a free account and access millions of resources
Similar Resources on Wayground
34 questions
Chapter 3 - Isenar

Quiz
•
University
30 questions
Professional Ethics Quiz 03

Quiz
•
University
30 questions
UTS PRELIM EXAMINATION

Quiz
•
University
25 questions
US 101 FINAL

Quiz
•
University
35 questions
That's Me!

Quiz
•
3rd Grade - Professio...
30 questions
4. DEZVOLTARE COMUNITARĂ

Quiz
•
University
30 questions
UJIAN UAS TEKNIK ELEKTRONIKA INDUSTRI

Quiz
•
12th Grade - Professi...
31 questions
MB M1V3 Reputation and Collaborative Consumption

Quiz
•
University
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 Professional Development
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University