ProgrammingHardTCS NQT · Wipro pattern

What is printed?

What is printed?
print(chr(0x41), ord('\n'))
  1. A. A 13
  2. B. A 10
  3. C. C 10
  4. D. B 10

Correct answer: B. A 10

0x41 is the code point of A, and the newline character has code point 10.

More Python Programming questions

Exams that ask this topic