Java IO Streams

Java IO Streams

Professional Development

10 Qs

quiz-placeholder

Similar activities

MindSpace Computers C Test-5

MindSpace Computers C Test-5

Professional Development

15 Qs

Google Classroom Quiz by Sir. JF

Google Classroom Quiz by Sir. JF

Professional Development

10 Qs

Wimax Redline Preassessment

Wimax Redline Preassessment

Professional Development

15 Qs

Introduction to Computers: Module I Nurses Leadership Group 2

Introduction to Computers: Module I Nurses Leadership Group 2

Professional Development

15 Qs

FORMATIVE ASSESSMENT 2 OOPS

FORMATIVE ASSESSMENT 2 OOPS

Professional Development

15 Qs

Exception Handling & I/O Streams

Exception Handling & I/O Streams

Professional Development

10 Qs

I/O Streams

I/O Streams

Professional Development

10 Qs

MindSpace Computers C Quiz-1 2025

MindSpace Computers C Quiz-1 2025

Professional Development

13 Qs

Java IO Streams

Java IO Streams

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Ms STAFF

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which class is used for reading bytes from a file in Java?

FileInputStream

BufferedReader

FileReader

DataInputStream

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between byte streams and character streams in Java?

Byte streams can only handle images; character streams are for audio files.

Byte streams are used for text data; character streams are for binary data.

Character streams are faster than byte streams for all types of data.

Byte streams are for binary data; character streams are for text data.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of BufferedInputStream in Java?

BufferedInputStream is a class for handling network connections.

BufferedInputStream improves I/O performance by buffering input data.

BufferedInputStream encrypts data for secure transmission.

BufferedInputStream is used for writing data to files.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to read a single character from a FileReader?

read()

getChar()

readChar()

fetch()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference between InputStream and Reader in Java?

InputStream reads bytes, while Reader reads characters.

InputStream reads characters, while Reader reads bytes.

InputStream is used for text files, while Reader is for binary files.

Both InputStream and Reader read bytes.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these methods is used to close an input or output stream in Java?

end()

finish()

stop()

close()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the flush() method do in an output stream?

Clears any bytes from the input buffer

Forces any buffered output bytes to be written out

Closes the stream

Ends the output session

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?