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","__")
file handling
Quiz
•
Computers
•
12th Grade
•
Hard
Madhuri Jha
Used 78+ times
FREE Resource
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
See the following code snippet and fill in the blank with appropriate statement
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
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()
20 questions
CBSE Class 12 Python Quiz
Quiz
•
12th Grade
10 questions
File Handling in Python
Quiz
•
11th - 12th Grade
15 questions
MS Excel - Managing Workbooks and Worksheets
Quiz
•
12th Grade
20 questions
ULANGAN TIK KELAS 7
Quiz
•
12th Grade
13 questions
Binary files in Python
Quiz
•
12th Grade
15 questions
File Handling in Python
Quiz
•
12th Grade
12 questions
file python
Quiz
•
12th Grade
20 questions
File Handling in C++
Quiz
•
12th Grade - University
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade