
Quiz 2: File Handling
Authored by MADHURI KETHARI
Professional Development
Professional Development
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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()
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
COAST GUARD BOOT CAMP Daily Quiz
Quiz
•
Professional Development
15 questions
TVET05 English for Oral Communication
Quiz
•
Professional Development
20 questions
DIDACTICS CLASS
Quiz
•
Professional Development
18 questions
UNIT 5 COMBINATIONAL LOGIC CIRUIT
Quiz
•
Professional Development
20 questions
Week 10 - Fault Tree Analysis
Quiz
•
Professional Development
20 questions
Golf day quiz
Quiz
•
Professional Development
20 questions
Win If You Can
Quiz
•
Professional Development
20 questions
Révision HTML, CSS et JavaScript
Quiz
•
Professional Development
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Professional Development
15 questions
LOTE_SPN2 5WEEK3 Day 2 Itinerary
Quiz
•
Professional Development
6 questions
Copy of G5_U6_L5_22-23
Lesson
•
KG - Professional Dev...
10 questions
March Quiz
Quiz
•
Professional Development
5 questions
Copy of G5_U6_L8_22-23
Lesson
•
KG - Professional Dev...
10 questions
suffixes FUL OR LESS
Quiz
•
Professional Development