file handling

file handling

12th Grade

15 Qs

quiz-placeholder

Similar activities

ZOOM QUIZ

ZOOM QUIZ

1st - 12th Grade

10 Qs

Aplikom

Aplikom

1st Grade - University

20 Qs

Quis Grade 5

Quis Grade 5

9th - 12th Grade

15 Qs

UH 1- INFORMATIKA KELAS 7 SEMESTER 2

UH 1- INFORMATIKA KELAS 7 SEMESTER 2

9th - 12th Grade

20 Qs

Cultura Digital 1º Trimestre (6º)

Cultura Digital 1º Trimestre (6º)

5th - 12th Grade

10 Qs

Memahami PBO

Memahami PBO

11th Grade - University

15 Qs

Review Quiz #2- Productivity Tools

Review Quiz #2- Productivity Tools

11th - 12th Grade

10 Qs

Administrasi Server Jaringan

Administrasi Server Jaringan

12th Grade - University

15 Qs

file handling

file handling

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Madhuri Jha

Used 80+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

a

w

x

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

myfile.terminate()

myfile.end()

myfile.close()

myfile.remove()

3.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image

See the following code snippet and fill in the blank with appropriate statement

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a method of opening files?

Replace
Append
Write
Read

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which file is not binary file?

student.mp4

student.jpeg

student.csv

student.exe

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function read single line at a time?

read()

read(n)

readline()

readlines()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to write multiple lines in text file?

write()

writelines()

lines()

print()

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?