nerdexam
Python_Institute

PCPP-32-101 · Question #59

If you want to include a UNICODE code point into a JSON string, which prefix will you use?

The correct answer is C. \u. The \u prefix is used to include a Unicode code point in a JSON string using a Unicode escape

Working with Files

Question

If you want to include a UNICODE code point into a JSON string, which prefix will you use?

Options

  • Ax'
  • Bu"
  • C\u
  • D\x

How the community answered

(25 responses)
  • A
    8% (2)
  • B
    4% (1)
  • C
    88% (22)

Explanation

The \u prefix is used to include a Unicode code point in a JSON string using a Unicode escape

Topics

#JSON#Unicode#escape sequences#string encoding

Community Discussion

No community discussion yet for this question.

Full PCPP-32-101 Practice