PCPP 32 10x PCPP Certified Professional Python Programmer 1 · Free Practice Question Medium

Question 41

Consider the following JSON data structure:



Which of the following statements about the given JSON structure are correct? (Select three)

  • A

    The value of the "address" key is an object.

  • B

    The value of the "grades" key is an array.

  • C

    The value of the "name" key is a string.

  • D

    The value of the "active" key is a numeric value.

  • E

    The value of the "city" key is a boolean.

Reveal correct answers

Correct answers: A, B, C

A.

The value {"street": "123 Main St", "zip": "10001"} is enclosed in curly braces, indicating an object.

B.

The value [90, 85, 95, 92] is enclosed in square brackets, representing an array.

C.

The value "John Doe" is enclosed in double quotes, indicating a string.

D.

The value true is a boolean value, not a numeric value.

E.

The value "New York" is a string, not a boolean.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need