← 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"])
- A.7 false 68
- B.7 False 68
- C.7 True 68
- 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 →