Python-Quiz1

Python-Quiz1

12th Grade

40 Qs

quiz-placeholder

Similar activities

Multidimensional list and tuples 2025

Multidimensional list and tuples 2025

9th - 12th Grade

44 Qs

Semester Final 2025

Semester Final 2025

10th Grade - University

40 Qs

Programming Loops, Data Structures, etc..

Programming Loops, Data Structures, etc..

9th - 12th Grade

35 Qs

Python Unit 11 - Collections: Dictionary, List, Set, Tuple

Python Unit 11 - Collections: Dictionary, List, Set, Tuple

6th - 12th Grade

40 Qs

Python - 2.தரவு அருவமாக்கம்

Python - 2.தரவு அருவமாக்கம்

12th Grade

35 Qs

Class XI Revision I

Class XI Revision I

11th - 12th Grade

43 Qs

2.01 Digital Raster Graphics

2.01 Digital Raster Graphics

9th - 12th Grade

39 Qs

python set 3

python set 3

9th - 12th Grade

41 Qs

Python-Quiz1

Python-Quiz1

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Shalini Sharma

Used 6+ times

FREE Resource

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()

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?