MCQ
To open a file "c:marks.txt" for reading, we use
  • file_read = open("c:marks.txt", "r")
  • B
    file_read = open("c:marks.txt", "r")
  • C
    file_read = open(file = "c:marks.txt", "r")
  • D
    file_read = open(file = "c:marks.txt", "r")

Answer

Correct option: A.
file_read = open("c:marks.txt", "r")
file_read = open("c:marks.txt", "r")

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free