nerdexam
Python_Institute

PCAP-31-03 · Question #91

What can you deduce from the following statement? (Select two answers)

The correct answer is B. a newlina character translation will be performed during the reads D. the opened file cannot be written with the use of the str variable. See the full explanation below for the reasoning.

Question

What can you deduce from the following statement? (Select two answers)

Options

  • Astr is a string read in from the file named file.txt
  • Ba newlina character translation will be performed during the reads
  • Cif file. txt does not exist, it will be created
  • Dthe opened file cannot be written with the use of the str variable

How the community answered

(32 responses)
  • A
    19% (6)
  • B
    75% (24)
  • C
    6% (2)

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice