🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Model Context Protocol (MCP): all 10 questions

Quiz: Model Context Protocol (MCP) · Question 5 of 10

What does this print? (code)

What does this print?

import json
reply = json.loads('{"jsonrpc": "2.0", "id": 7, "result": {"content": [{"type": "text", "text": "68"}], "isError": false}}')
print(reply["id"], reply["result"]["isError"], reply["result"]["content"][0]["text"])
  1. A.7 false 68
  2. B.7 False 68
  3. C.7 True 68
  4. D.id isError text
Answer & explanation

Correct answer: 7 False 68

JSON false becomes Python False.

Can you get the rest right without peeking?

Take the timed Quiz: Model Context Protocol (MCP) quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →