Quiz 2: File Handling

Quiz 2: File Handling

Professional Development

20 Qs

quiz-placeholder

Similar activities

BSAIT 1-2 QUIZ

BSAIT 1-2 QUIZ

Professional Development

20 Qs

[FAST TRACK] Android quiz 11

[FAST TRACK] Android quiz 11

Professional Development

15 Qs

Python Code

Python Code

8th Grade - Professional Development

20 Qs

Create Google Classroom

Create Google Classroom

Professional Development

16 Qs

G Suite Training and Other Apps

G Suite Training and Other Apps

Professional Development

20 Qs

Công nghệ Java_Test1

Công nghệ Java_Test1

Professional Development

15 Qs

Java Review

Java Review

Professional Development

19 Qs

Quizizz - Session 24 - Thread

Quizizz - Session 24 - Thread

Professional Development

15 Qs

Quiz 2: File Handling

Quiz 2: File Handling

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

MADHURI KETHARI

Used 5+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following exception is thrown in case when the file specified for writing is not found?

FileNotFoundException

IOException

FileInputException

FileException

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following method is used to read from file?


readFile()

get()

read()

scanf()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following value is returned by read() method when end of file (EOF) is encountered?


1

-1

0

Null

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the follwing methods is used to write() into a file?


writeFile()

put()

write()

print()


5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following packages contain classes and interfaces used for input & output operations of file?

java.util


java.lang


6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these class is not a member class of java.io package?


FileReader


FileWriter


File

String

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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


File

FileReader

FileWriter

InputStream

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?