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
MS Word Quiz | It Course

Quiz
•
University
10 questions
Vullisblikkie Gedigte Quiz

Quiz
•
7th Grade - University
9 questions
Lesson 3- Adding Worksheet Contents

Quiz
•
6th Grade - University
10 questions
(LS) CPA CPF5 Storage Device

Quiz
•
6th - 12th Grade
10 questions
PHP BASIC

Quiz
•
University
10 questions
Sec. 12: Managing File Ownership and Permission

Quiz
•
University
10 questions
Introduction to AutoLISP

Quiz
•
12th Grade
10 questions
Sec. 11: User Accounts and Groups

Quiz
•
University
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Instructional Technology
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade