T-Level DPDD: File Handling Quiz

T-Level DPDD: File Handling Quiz

11th Grade

14 Qs

quiz-placeholder

Similar activities

QUIZ 1

QUIZ 1

11th Grade

10 Qs

File Type Extensions

File Type Extensions

8th Grade - University

10 Qs

Python Basics

Python Basics

6th Grade - University

10 Qs

Python Программалау тілі

Python Программалау тілі

11th Grade

15 Qs

Uji Pengetahuan Sistem Operasi Linux

Uji Pengetahuan Sistem Operasi Linux

9th - 12th Grade

12 Qs

Free WiFi app (AppInventor)

Free WiFi app (AppInventor)

11th - 12th Grade

10 Qs

Files Extensions Quiz

Files Extensions Quiz

11th - 12th Grade

18 Qs

COMPUTER AWARENESS

COMPUTER AWARENESS

1st Grade - University

10 Qs

T-Level DPDD: File Handling Quiz

T-Level DPDD: File Handling Quiz

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Sara Burton

Used 2+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a mode for opening files in Python?

Append

Create

Delete

Read

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the Python notation for opening a file in text mode?

"t"

"r"

"w"

"b"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python mode is used to open a file for writing?

"a"

"x"

"r"

"w"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the "r" mode in Python do?

Opens a file for appending

Opens a file for writing

Opens a file for reading

Creates a new file

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function used to open a file in Python?

read()

write()

open()

create()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the "a" mode in Python do?

Opens a file for reading

Opens a file for writing

Opens a file for appending

Creates a new file

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to open a file named "practicefile.txt" for reading in Python?

h = open("practicefile.txt", "w")

h = open("practicefile.txt", "r")

h = open("practicefile.txt", "a")

h = open("practicefile.txt", "x")

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?