File Handling

Quiz
•
Computers
•
10th Grade
•
Medium
Sima Assam
Used 10+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the first file handling operation mentioned in the text?
open
write
close
read
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'R' parameter signify when opening a file in Python?
Read mode
Binary mode
Write mode
Append mode
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is used to remove the newline character when reading from a file?
.strip()
.delete()
.remove()
.cut()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does setting a Boolean variable to false indicate in file handling?
File is empty
End of the file is reached
File is corrupted
End of the file is not reached
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What parameter is used to append to a file in Python?
A
R
W
B
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct order of operations for writing data to a file?
Write, open, close
Close, open, write
Open, close, write
Open, write, close
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the '.write' method do?
Deletes data from a file
Opens a file for writing
Reads data from a file
Writes data to a file
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
SPREADSHEET

Quiz
•
10th Grade
10 questions
DBMS-Open Office

Quiz
•
9th - 12th Grade
11 questions
MS WORD PARTS

Quiz
•
10th Grade
15 questions
Year 9 Databases Quiz

Quiz
•
7th - 10th Grade
13 questions
Aplicația Word

Quiz
•
9th - 10th Grade
10 questions
Networking

Quiz
•
10th - 12th Grade
10 questions
Programming - Basic File Handling Operations

Quiz
•
3rd - 11th Grade
12 questions
Paper 2 Revision - IGCSE Computer Science

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade