file

file

8th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Virtual Private Server

Virtual Private Server

12th Grade

15 Qs

kuis tools coreldraw

kuis tools coreldraw

10th Grade

15 Qs

2021.10.15_ Đề kiểm tra tin học 12

2021.10.15_ Đề kiểm tra tin học 12

12th Grade

20 Qs

Class XI Basics

Class XI Basics

11th - 12th Grade

15 Qs

BÀI THI THỬ MÔN TIN HỌC LỚP 4

BÀI THI THỬ MÔN TIN HỌC LỚP 4

1st - 8th Grade

20 Qs

Security and Ethics

Security and Ethics

9th - 12th Grade

17 Qs

Computer System

Computer System

9th - 11th Grade

21 Qs

CIA Mid-Term Review 1

CIA Mid-Term Review 1

9th - 10th Grade

17 Qs

file

file

Assessment

Quiz

Computers

8th - 12th Grade

Medium

Created by

DEEPAK D M

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What will be the output-

f=open('abc.txt','a')

text="xyz"

f.write(text)

f.close()

Writing into the file without erasing old content

Writing into the file by erasing old content

reading from the file without erasing old content

reading from the file by erasing old content

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Mode in the following program to open file for writing in a mode where new data will be added at the end of old data

file =open("poem.txt","__")

r

w

a

r+

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Choose the correct statement to close a file stream named myfile:

myfile.terminate()

myfile.end()

myfile.close()

myfile.remove()

4.

FILL IN THE BLANK QUESTION

1 min • 5 pts

Media Image

Fill in the blank with appropriate statement.

5.

FILL IN THE BLANK QUESTION

1 min • 5 pts

Media Image

Write the appropriate statement in the blank.

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which statement(s) is/are true to open a binary file "Record.dat" for reading and writing.

file =open("Record.dat","wb")

file =open("Record.dat","rb")

file =open("Record.dat","ab")

file =open("Record.dat","rb+")

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which function read single line at a time?

read()

read(n)

readline()

readlines()

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?