File Handling in Python

File Handling in Python

10th - 11th Grade

20 Qs

quiz-placeholder

Similar activities

Python Quiz

Python Quiz

11th Grade

20 Qs

Python

Python

11th Grade

20 Qs

Python Recap

Python Recap

9th - 11th Grade

19 Qs

python_1

python_1

5th - 12th Grade

22 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Year 8 Python Assessment

Year 8 Python Assessment

9th - 10th Grade

21 Qs

JS SQL Reviewer

JS SQL Reviewer

10th Grade

15 Qs

Python Strings

Python Strings

11th Grade

21 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?