Search Header Logo

JAVA I/O

Authored by Usama Rahman

Computers

University

Used 149+ times

JAVA I/O
AI

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

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 a member class of java.io package?

String
StringReader
Writer
File

4.

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

5.

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

6.

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

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

public char[] readPassword() blongs to whcih class

Scanner Class
Console class
InputStreamReader class
DataInputStream

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?