
Adv Java Quiz 1
Authored by Omphile Mosingathi
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a stream in Java?
A sequence of elements that can be processed sequentially
A type of data structure
A collection of objects
A type of exception
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of byte streams in Java?
To handle characters
To handle primitive data types and files
To handle text files only
To handle large amounts of data in memory
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which class is used for reading bytes from a file?
FileReader
BufferedReader
FileInputStream
DataInputStream
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which class is used for writing bytes to a file?
FileWriter
BufferedWriter
FileOutputStream
DataOutputStream
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a FileInputStream object to read from a file named "example.txt"?
FileInputStream fis = new FileInputStream("example.txt");
FileInputStream fis = new FileInputStream(new File("example.txt"));
FileInputStream fis = new FileInputStream(new FileInputStream("example.txt"));
d) Both a and b
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method of FileInputStream reads the next byte of data?
readByte()
nextByte()
read()
getByte()
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
10 questions
Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera
Quiz
•
1st Grade - Professio...
10 questions
Python with DataScience
Quiz
•
7th Grade - University
10 questions
Post Test #4 - Python Fundamental #3
Quiz
•
University
10 questions
DL Refresher
Quiz
•
KG - Professional Dev...
10 questions
UTILITY PROGRAM
Quiz
•
University
15 questions
GIS Unit III
Quiz
•
University
11 questions
Email of request
Quiz
•
12th Grade - Professi...
15 questions
ADB Quiz #1
Quiz
•
University
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade