Search Header Logo

Python-Quiz1

Authored by Shalini Sharma

Computers

12th Grade

Used 6+ times

Python-Quiz1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How many file objects would you need to manage to process four files sequentially ?

Three objects are needed

Four objects are needed

Two objects are needed

One object is needed

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How many file objects would you need to manage to merge two sorted files into third file ?

Three objects are needed

Four objects are needed

Two objects are needed

One object is needed

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The readlines( ) method returns :

string

A list of integers

A list of single characters

A list of lines

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which command is used to read the remaining lines of the file from a file object fobj?

fobj.read(2)

fobj.read()

fobj.readline()

fobj.readlines()

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which command is used to read two characteters from a file object fobj?

fobj.read(2)

fobj.read()

fobj.readline()

fobj.readlines()

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In python _____ are interpreted as a sequence or stream of bytes stored on some storage media.

Data

Files

Stream

Binary

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which method is used to remove/ delete a file?

data()

remove()

kll()

close()

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?