

J277.2.2.3.The basic file handling operations.
Presentation
•
Computers
•
10th - 11th Grade
•
Hard
Ian Currie
FREE Resource
4 Slides • 8 Questions
1
J277.2.2.3.The basic file handling operations.
by Mr. Shingari
2
Walt
Understand the basic file operations
3
4
Multiple Select
Which of the following files opens a file?
myFile = openRead("sample.txt")
myFile = openWrite("sample.txt")
myFile.readLine()
myFile.close()
myFile.writeLine()
5
Multiple Select
Which of the following files opens a file to be read?
myFile = openRead("sample.txt")
myFile = openWrite("sample.txt")
myFile.readLine()
myFile.close()
myFile.writeLine()
6
Multiple Select
Which of the following files opens a file to be written to?
myFile = openRead("sample.txt")
myFile = openWrite("sample.txt")
myFile.readLine()
myFile.close()
myFile.writeLine()
7
Multiple Select
Which of the following reads a line from a file?
myFile = openRead("sample.txt")
myFile = openWrite("sample.txt")
myFile.readLine()
myFile.close()
myFile.writeLine()
8
Multiple Select
Which of the following writes a line to a file?
myFile = openRead("sample.txt")
myFile = openWrite("sample.txt")
myFile.readLine()
myFile.close()
myFile.writeLine("Hello World")
9
Multiple Select
Which of the following closes a file?
myFile = openRead("sample.txt")
myFile = openWrite("sample.txt")
myFile.readLine()
myFile.close()
myFile.writeLine("Hello World")
10
Multiple Select
Which of the following blocks of code will open and read each line from a file?
11
Multiple Select
What does the code MyFile.endOfFile() do?
Answers: 2
Closes the file
Returns true if we have reached the end of the file?
Returns false if we have not reached the end of the file?
12
File handling operations
Easy challenges: page 38
Medium challenges: page 39
J277.2.2.3.The basic file handling operations.
by Mr. Shingari
Show answer
Auto Play
Slide 1 / 12
SLIDE
Similar Resources on Wayground
8 questions
Data Validation and Verification Review
Presentation
•
10th - 12th Grade
8 questions
Semicolons
Presentation
•
10th Grade
10 questions
The environment
Presentation
•
10th - 12th Grade
11 questions
Sistem Operasi Komputer
Presentation
•
10th Grade
11 questions
Cause and Effect
Presentation
•
11th Grade
9 questions
CER-Emission Spectra of Elements
Presentation
•
10th Grade
13 questions
Hacking
Presentation
•
9th - 12th Grade
9 questions
MY FIRST LESSON
Presentation
•
10th - 11th Grade
Popular Resources on Wayground
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2526sy
Quiz
•
5th Grade
10 questions
Cinco de Mayo Trivia Questions
Interactive video
•
3rd - 5th Grade
17 questions
HCS Grade 4 Simulation Assessment_2 2526sy
Quiz
•
4th Grade
24 questions
HCS Grade 5 Simulation Assessment_2 2526sy
Quiz
•
5th Grade
13 questions
Cinco de mayo
Interactive video
•
6th - 8th Grade
20 questions
Math Review
Quiz
•
3rd Grade
30 questions
GVMS House Trivia 2026
Quiz
•
6th - 8th Grade