Search Header Logo

IO STREAMS -1

Authored by Jegathesh C1291

Computers

Professional Development

Used 5+ times

IO STREAMS -1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The …………………… package contains a large number of stream classes that provide capabilities for processing all types of data.

java.awt

java.io

java.util

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

State whether the following statements about the stream in Java.

i) The two basic streams used are the input and output streams.

ii) Filters are used to read data from one stream and write it to another stream.

True, True

True, False

False, True

False, False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The InputStream class defines methods for performing input functions such as

i) reading bytes ii) closing streams

iii) skipping ahead in a stream iv) flushing streams

ii, iii and iv only

i, ii and iii only

i, iii and iv only

All i, ii, iii and iv

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The OutputStreams includes methods that are designed to perform the following tasks.

i) closing streams ii) flushing streams

iii) reading bytes iv) writing bytes

ii, iii and iv only

i, ii and iii only

i, ii and iv only

All i, ii, iii and iv

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following method(s) not included in InputStream class.

available( )

reset( )

flush( )

close( )

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following methods not included in OutputStream class.

write( )

skip( )

close( )

flush( )

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The class DataInputStream extends …………………….. and implements the interface DataInput.

FileInputStream

SequenceInputStream

FilterInputStream

InputStream

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?