Search Header Logo

Java I/O Streams

Authored by A Vijay Kumar

Computers

University

Used 62+ times

Java I/O Streams
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a type of stream in Java?

Integer stream

Short stream

Byte stream

Long stream

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is used to read a string from the input stream?

get()

getLine()

read()

readLine()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these class is used to read characters and strings in Java from console?

BufferedReader

StringReader

BufferedStreamReader

InputStreamReader

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these class contains the methods print() & println()?

System

System.out

BufferedOutputStream

PrintStream

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

……………………. class is used to increase the efficiency of input operations.

DataInputStream

FileInputStream

BufferedInputStream

PipeInputStream

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A stream is a sequence of data.In Java a stream is composed of?

Bytes

Bits

Both A & B

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

These commonly used methods of


1) public abstract int read()throws IOException

2) public int available()throws IOException

3) public void close()throws IOException

OutputStream class

InputStream class

Input/OutputStream class

None of the above

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers