
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
12 questions
PSSI Chp 1 dan 2
Quiz
•
University
10 questions
PENGENALAN UNITY
Quiz
•
University
12 questions
ASAS SAINS KOMPUTER : TINGKATAN 3
Quiz
•
4th Grade - University
14 questions
Semi-Long Quiz#1 - SAM, NW3A-3E
Quiz
•
University
10 questions
GRAFIKA KOMPUTER
Quiz
•
University
10 questions
Python quick quiz
Quiz
•
University
10 questions
pointers and structures
Quiz
•
University
11 questions
What is a computer
Quiz
•
KG - 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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade