file

file

8th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Practice Quiz for Term 1

Practice Quiz for Term 1

10th Grade

20 Qs

WORD

WORD

11th Grade

20 Qs

4th Quarter SketchUp Review

4th Quarter SketchUp Review

10th Grade

15 Qs

ICT WEBINAR QUIZ

ICT WEBINAR QUIZ

KG - Professional Development

20 Qs

TIN 12_BÀI 11

TIN 12_BÀI 11

12th Grade

20 Qs

KD 3.1_Aplikasi Pengolah Angka / Spreadsheet

KD 3.1_Aplikasi Pengolah Angka / Spreadsheet

10th Grade

15 Qs

Text and Image representation

Text and Image representation

11th Grade

22 Qs

PTS TIK Kelas 9 Semester Ganjil

PTS TIK Kelas 9 Semester Ganjil

9th Grade

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

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

Already have an account?