
Java File Handling Quiz
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Geoff Ewart
Used 6+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which class in Java is used for file handling?
BufferedReader
File
FileReader
Scanner
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the createNewFile() method return if the file is successfully created?
void
false
null
true
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to check if a file is writable?
write()
isWritable()
canWrite()
canRead()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What exception does the createNewFile() method throw if an error occurs?
FileAlreadyExistsException
NullPointerException
IOException
FileNotFoundException
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to delete a file in Java?
erase()
delete()
remove()
clear()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of the length() method in the File class?
float
int
long
double
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method returns the absolute pathname of a file?
getAbsolutePath()
getPath()
getFullPath()
getDirectory()
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
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
20 questions
QUIZ BAB 4: SISTEM OPERASI
Quiz
•
8th Grade - University
10 questions
Penilian Harian 2 Editing Video
Quiz
•
9th - 12th Grade
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
20 questions
Network topologies
Quiz
•
8th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
