file

file

8th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

M1_Final_Quiz1_2017

M1_Final_Quiz1_2017

7th - 8th Grade

20 Qs

Unit Test 1 Class 8 Computer

Unit Test 1 Class 8 Computer

8th - 9th Grade

20 Qs

Latihan Pilihan Ganda - Sketchup

Latihan Pilihan Ganda - Sketchup

9th Grade

15 Qs

Computer Science - X

Computer Science - X

8th - 10th Grade

20 Qs

Administrasi Infrastruktur Jaringan 1

Administrasi Infrastruktur Jaringan 1

11th Grade

20 Qs

Khởi động với Quizizz_6.12.2021_9C

Khởi động với Quizizz_6.12.2021_9C

9th Grade

20 Qs

Ulangan Informatika Kelas 2 (Lat ASAS1)

Ulangan Informatika Kelas 2 (Lat ASAS1)

2nd Grade - University

20 Qs

Trắc nghiệm Bài 14_15 tin học K10

Trắc nghiệm Bài 14_15 tin học K10

10th Grade

20 Qs

file

file

Assessment

Quiz

Computers

8th - 12th Grade

Medium

Created by

DEEPAK D M

Used 2+ times

FREE Resource

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?