What is the purpose of ‘r’ as prefix in the given statement? f = open(r “d:\color\flower.txt”)
File Handling Text Files

Quiz
•
Instructional Technology
•
12th Grade - University
•
Medium
Remya Pillai
Used 19+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To make it relative string
To make it new string
To make it raw string
To make it reverse string
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A file object is also known as
File handle
File copy
File directory
File link
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To force python to write the contents of file buffer on to storage file,........method may be used.
buffer()
write()
close()
flush()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does strip() function do?
Removes the trailing or leading spaces, if any.
Deletes the file
Remove the file object
Removes all the spaces between words
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which option is correct about this program? f=open(“ss.txt”,”wb”) print(“Name of the file:”,f.name) f.flush() f.close()
Compilation error
Runtime error
No output
Flushes the file when closing them
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to break the link of file object and the file on the disk.
open
close
break
end
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Yashi wants to check whether her name is listed in Shortlisted.dat or not. Which command she can write to open the file:
a=open(“Shortlisted.dat”,”rb”)
with open (“Shortlisted.dat’,’rb”) as a:
None
Both a and b
Similar Resources on Quizizz
10 questions
KHỞI ĐỘNG

Quiz
•
12th Grade
10 questions
Premiere Pro Video Project Organization

Quiz
•
9th - 12th Grade
10 questions
File Management

Quiz
•
9th - 12th Grade
10 questions
22AD003

Quiz
•
University
10 questions
Quis Teknologi Layanan Jaringan

Quiz
•
7th Grade - University
10 questions
MET 5: Media and Information Sources

Quiz
•
12th Grade
10 questions
Professional Opportunities with Linux

Quiz
•
University
10 questions
tin 12 bài 3: gth microsoft access

Quiz
•
12th Grade
Popular Resources on Quizizz
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
Discover more resources for Instructional Technology
67 questions
Course Recap Ptho May25

Quiz
•
University
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade
6 questions
Railroad Operations and Classifications Quiz

Quiz
•
University