Instructions
- 1. Your final score will reflect your grasp of the concepts—approach each question with precision.
- 2. Thoroughly review each solution before proceeding to ensure full understanding.
- 3. Final results will be available after submission to provide insights into areas for further improvement.
- 4. Maintain academic integrity—plagiarism undermines learning and professional growth.
- 5. Once submitted, responses are final, so ensure you’re confident in your answers.
- 6. These challenges are designed to test practical knowledge; apply your skills as you would in real-world scenarios.
All Problems
Question
Action
Which module is used to handle JSON files in Python?
What does json.dump() do?
How do you load a JSON object from a file?
Which function converts a JSON string to a Python object?
What is the default encoding for JSON files in Python?
How do you pretty-print JSON data while writing it to a file?
Which data type is not supported in JSON?
What will json.loads() return if the JSON is invalid?
How do you convert a Python dictionary to a JSON string?
What happens if you try to write non-serializable data to a JSON file?