Search Header Logo

GR_FILE HANDLING_WS.1

Authored by Saranya S

Biology

12th Grade

Used 2+ times

GR_FILE HANDLING_WS.1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

24 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

A _____ in itself a bunch of bytes stored permanently in Secondary memory(You always save with an extension)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A___ file store in ASCII or Unicode characters( Human Readable form)

Binary

Text

CSV

All of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To open a file "c:marks.txt" for reading, we use

(a) file_read = open("c:marks.txt", "r")

(b) file_read = open("c:marks.txt", "r+")

(c) file_read = (file = "c:marks.txt", "r")

(d) file_read = open(file = "c:marks.txt""r")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the use of tell() method in Python?

(a) returns the current position of record pointer within the file

( b) returns the end position of record pointer within the file

(c) returns the current position of record pointer within the line

(d) none of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands can be used to read "n" number of characters from a file using the file object ?

(a) File.read(n)

(b) N = file.read()

(c) File.readline(n)

(d) File.readlines()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax of open() function?

(a) File = open(file_name[, acces]

(b) File object = open(file_name [, access_mode])

(c) File object = open(file_name)

(d) None of the above

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Which type of file is no need to translation or specific code

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?