nerdexam
Python_Institute

PCAP-31-03 · Question #90

PCAP-31-03 Question #90: Real Exam Question with Answer & Explanation

The correct answer is D. ch = s. read(l). See the full explanation below for the reasoning.

Question

You are going to read just one character from a stream called s. Which statement would you use?

Options

  • Ach = read(s, 1)
  • Bch = s. input(1)
  • Cch = input(s, 1)
  • Dch = s. read(l)

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice