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

Guess The Flags - Asia

Guess The Flags - Asia

5th - 12th Grade

15 Qs

Lesson 31 Test-4

Lesson 31 Test-4

5th - 8th Grade

15 Qs

After Winter Break Classroom Expectations Part 2

After Winter Break Classroom Expectations Part 2

1st - 5th Grade

20 Qs

Django #1 (basic)

Django #1 (basic)

1st Grade - Professional Development

15 Qs

RMS Expectations

RMS Expectations

5th - 8th Grade

16 Qs

Google Apps Rockstar - RSD

Google Apps Rockstar - RSD

KG - University

25 Qs

Year 6 Microsoft Word

Year 6 Microsoft Word

5th - 6th Grade

19 Qs

Technology

Technology

KG - 12th Grade

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