Vidyalelo
Python · Q76

MCQs for Python Strings: Exam

Programming · Python · question 76

Q76

Which of the following statement prints hello .txt?

A.
print(“hello\example\test.txt”)
B.
print(“hello\\example\\test.txt”)
Answer
C.
print(“hello\”example\”test.txt”)
D.
print(“hello”\example”\test.txt”)

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board