Search Header Logo

Java IO package

Authored by A Vijay Kumar

Computers

University

27 Questions

Used 4+ times

Java IO package
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these method of FileReader class is used to read characters from a file?

read()
scanf()
get()
getInteger()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these packages contain classes and interfaces used for input & output operations of a program?

java.util
java.lang
java.io
all of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these class is not related to input and output stream in terms of functioning?

File
Write
InputStream
Reader

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which stream used to read data from a source, it may be a file, an array, peripheral device or socket?

InputStream
OutputStream
Input/OutputStream
None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is used for writing data to a file in file handling?

FileInputStream
FileOutputStream
Both A & B
None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to close the Stream?

close();
flush();
null();
final();

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Which exception is thrown by read() method?

SystemInputException
IOException
SystemException
InterruptedException

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?