File Handling in Python

File Handling in Python

10th - 11th Grade

20 Qs

quiz-placeholder

Similar activities

Procedures and Functions

Procedures and Functions

10th Grade

20 Qs

Year 8 Python Assessment

Year 8 Python Assessment

9th - 10th Grade

21 Qs

Javascript

Javascript

10th - 12th Grade

15 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Python

Python

11th Grade

20 Qs

General Python year 10

General Python year 10

9th Grade - University

20 Qs

Foundations of Programming

Foundations of Programming

9th - 10th Grade

18 Qs

python_1

python_1

5th - 12th Grade

22 Qs

File Handling in Python

File Handling in Python

Assessment

Quiz

Computers

10th - 11th Grade

Medium

Created by

Rachel Pugh

Used 35+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a method of opening files?
Replace
Append
Write
Read

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Opening a file with write access causes the contents of the file to removed first.
True
False

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Appending to a file means adding extra data into the file.
True
False

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When writing to a file you cannot create new lines.
False
True

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the last action that must be performed on a file?
Close
Save
End
Write

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the data type of data read from a file?
String
Integer
Real
Boolean

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Appending data to a file places it at the start of the file.
False
True

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?