file
Quiz
•
Computers
•
8th - 12th Grade
•
Medium
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
Fill in the blank with appropriate statement.
5.
FILL IN THE BLANK QUESTION
1 min • 5 pts
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Vocabulary of Computer
Quiz
•
12th Grade
20 questions
Year 8 IT - Network Communication
Quiz
•
7th - 9th Grade
20 questions
New Scratch
Quiz
•
6th - 8th Grade
20 questions
Teknik Pengolahan Audio dan Video
Quiz
•
12th Grade
20 questions
Administrasi Sistem Jaringan XII
Quiz
•
12th Grade
15 questions
DATABASE SERVER
Quiz
•
11th Grade
15 questions
ÔN TẬP TIN HỌC 7 TUẦN 7 25-30/10/2021
Quiz
•
6th - 9th Grade
15 questions
Mengenal Internet dan Jaringan Local
Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Computers
18 questions
Company Logos
Quiz
•
6th - 8th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Understanding Computer Systems and Components
Quiz
•
9th Grade
11 questions
The Importance and Uses of Presentation Software
Quiz
•
8th Grade
12 questions
Overview of Mexico Part 1
Lesson
•
9th - 12th Grade
10 questions
Microsoft Word Ribbon basics
Quiz
•
3rd - 8th Grade
8 questions
Canadian History
Lesson
•
9th - 12th Grade
