Lesson 41 - file handling & Various opening modes in file

Lesson 41 - file handling & Various opening modes in file

5th Grade

20 Qs

quiz-placeholder

Similar activities

Google!

Google!

KG - University

15 Qs

Introduction to MS Word

Introduction to MS Word

1st - 10th Grade

15 Qs

Google Educator Part 1

Google Educator Part 1

KG - University

25 Qs

Hilton Honors APAC Tactical F&B Outlet Offer FINALE

Hilton Honors APAC Tactical F&B Outlet Offer FINALE

1st - 6th Grade

20 Qs

Emotional intelligence and Manners

Emotional intelligence and Manners

KG - 7th Grade

20 Qs

Code.org Quiz

Code.org Quiz

KG - 12th Grade

20 Qs

Lesson 3 - Operators-2 and module introduction

Lesson 3 - Operators-2 and module introduction

5th - 8th Grade

20 Qs

Consonant sounds

Consonant sounds

5th Grade

18 Qs

Lesson 41 - file handling & Various opening modes in file

Lesson 41 - file handling & Various opening modes in file

Assessment

Quiz

Professional Development, Education

5th Grade

Medium

Created by

NotchUp .co

Used 35+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The main goal of file handling in python is -

to save program codes

to store state of the program

to save program related data

none

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which of the following function is used to open the file in python file handling ?

open()

unlock()

unfold()

extend()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many parameters used to pass while opening a file ?

2

3

1

0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following mode is applied while writing into the file ?

'w'

'r'

'write'

'read'

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When we open file in reading mode the initial position of the cursor is- 

0

After the last written word

middle of the file

none

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When we open file in writing mode what will happen ?

all the previous data will be deleted

all the previous data will not be deleted

Both can be happen depending on the situation

none

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to check the file opening mode of the file ?

readable()

writable()

Both readable() & writable()

none

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?