Disclaimer:
Educational Use Only:
The website links provided are to be used strictly for educational and knowledge-gaining purposes only.
No Misuse:
Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.
Respect for Websites and Businesses:
Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.
Acknowledge Value of Knowledge:
Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.
No Endorsement:
The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.
User Responsibility:
By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.
Overall MCQs for Reference
- Which format does JSON primarily use to represent data?
a. Binary
b. XML
c. Text
d. Hexadecimal
Answer: c. Textgeeksforgeeks - What is the full form of JSON?
a. Java Source Object Notation
b. JavaScript Object Notation
c. Java Sequential Operational Network
d. JavaScript Ordered Name
Answer: b. JavaScript Object Notationcrackyourinterview+1 - Which of the following is a valid JSON object?
a. {name; “Alvin”}
b. (name, “Alvin”)
c. {“name”: “Alvin”}
d. [“name”, “Alvin”]
Answer: c. {“name”: “Alvin”}tutorialspoint - What type of language dependence does JSON have?
a. Language dependent
b. Language independent
c. Only JavaScript
d. Only Python
Answer: b. Language independentw3schools - Which symbol is used for objects in JSON?
a. []
b. ()
c. {}
d. <>
Answer: c. {}texau+1 - In machine learning, JSON can be used to store which type of data?
a. Only numeric
b. Model configuration
c. Only text
d. Only images
Answer: b. Model configurationfingerlinksinfotech+1 - In Python, which module is used for handling JSON data?
a. json
b. pickle
c. numpy
d. pandas
Answer: a. jsongeeksforgeeks+1 - For transferring model parameters between systems, which format is lightweight and popular?
a. HTML
b. XML
c. JSON
d. CSV
Answer: c. JSONtexau+1 - How are key/value pairs separated in JSON objects?
a. Comma
b. Colon
c. Equal sign
d. Semicolon
Answer: b. Colontutorialspoint - What is a common use for JSON in computer vision ML tasks?
a. Storing model weights
b. Storing data frames
c. Storing annotations
d. Network traffic logs
Answer: c. Storing annotationsultralytics+1 - Which is a valid value type in JSON?
a. Function
b. Boolean
c. Class
d. Exception
Answer: b. Booleanincludehelp+1 - Which of the following is used to parse JSON in Python?
a. json.read()
b. json.loads()
c. json.parse()
d. json.import()
Answer: b. json.loads()scribd+1 - What is a major reason for using JSON in ML experiment tracking?
a. Human unreadability
b. High storage cost
c. Metadata recording
d. Static typing
Answer: c. Metadata recordingdigitalocean+1 - Which Python method converts a dictionary into a JSON string?
a. json.decode()
b. json.dumps()
c. dict_to_json()
d. encode.json()
Answer: b. json.dumps()realpython+1 - Can JSON structures be nested?
a. No
b. Yes
c. Only once
d. Only with arrays
Answer: b. Yesdev+1 - Which data type is not supported in JSON?
a. Number
b. String
c. Date
d. Object
Answer: c. Daterealpython+1 - What does JSON.stringify() do in JavaScript?
a. Loads a JSON file
b. Converts an object to a JSON string
c. Parses JSON
d. Changes variable name
Answer: b. Converts an object to a JSON stringgeeksforgeeks+1 - Which is an advantage of JSON over XML in ML workflows?
a. Larger size
b. More complex
c. Simpler syntax
d. No machine compatibility
Answer: c. Simpler syntaxdevopsschool+1 - What is the typical file extension for JSON files?
a. .js
b. .jso
c. .json
d. .txt
Answer: c. .jsonincludehelp+1 - What is the primary benefit of JSON for ML pipeline configuration management?
a. Immutability
b. Easy editing
c. Binary storage
d. No validation
Answer: b. Easy editingfingerlinksinfotech+1 - How can missing keys in a JSON object be handled in Python?
a. Ignore key
b. Use get() with default
c. Raise an error
d. Drop key
Answer: b. Use get() with defaultscribd+1 - Can JSON values be null?
a. Yes
b. No
c. Only in arrays
d. Only in objects
Answer: a. Yesincludehelp+1 - Which ML application commonly uses JSON for storing results?
a. Feature engineering
b. Data annotation
c. Model training
d. Model evaluation
Answer: d. Model evaluationdev+1 - For sharing datasets in ML, JSON is preferable because:
a. Binary format
b. Interoperability
c. Requires JavaScript
d. Fixed schema
Answer: b. Interoperabilityultralytics+1 - JSON objects store data as:
a. Key-value pairs
b. Indexes
c. Lines
d. Tables
Answer: a. Key-value pairstutorialspoint+1 - Which method is used to access a nested value in a JSON object in Python?
a. dict.value()
b. data[‘key1’][‘key2’]
c. find()
d. json.access()
Answer: b. data[‘key1’][‘key2’]scribd+1 - JSON supports which array elements?
a. Functions
b. Objects
c. Classes
d. Exceptions
Answer: b. Objectsgeeksforgeeks+1 - In what scenario are JSON files used in hyperparameter optimization?
a. To store weights
b. To define parameter grids
c. To log errors only
d. To visualize data
Answer: b. To define parameter gridsdigitalocean+1 - JSON data is mainly:
a. Binary
b. Human-readable
c. Encrypted
d. Random
Answer: b. Human-readabledevopsschool+1 - Which is NOT a valid JSON key?
a. “1abc”
b. true
c. “name”
d. “abc”
Answer: b. truetutorialspoint+1 - Can JSON be used for API responses in ML model deployment?
a. No
b. Yes
c. Only for Python
d. Only for Java
Answer: b. Yestexau+1 - JSON is best described as:
a. A programming language
b. A markup language
c. A data interchange format
d. A cryptography tool
Answer: c. A data interchange formatdevopsschool+1 - In ML projects, JSON can record:
a. Random variables
b. Model hyperparameters
c. Unparsed code
d. Network traffic logs
Answer: b. Model hyperparametersfingerlinksinfotech+1 - In a JSON file for ML, what typically marks an array?
a. {}
b. []
c. ()
d. <>
Answer: b. []texau+1 - Which file format is JSON an alternative to in ML data exchange?
a. CSV
b. YAML
c. XML
d. HTML
Answer: c. XMLdevopsschool+1 - Can JSON files store experiment timestamps for ML workflows?
a. Yes
b. No
c. Only as objects
d. Only as arrays
Answer: a. Yesdigitalocean+1 - In ML annotation tasks, which structure might be included in a JSON annotation file?
a. Bounding boxes
b. Loss functions
c. Optimizer names
d. Learning rates
Answer: a. Bounding boxesultralytics+1 - What method serializes a Python object into JSON?
a. loads()
b. dumps()
c. decode()
d. dict()
Answer: b. dumps()machinelearningplus+1 - Can JSON be used with pandas dataframes in ML?
a. No
b. Yes
c. Only for visualization
d. Only for statistics
Answer: b. Yesdatacamp+1 - Which would NOT be a valid JSON value?
a. “string”
b. null
c. function
d. number
Answer: c. functionincludehelp+1 - What type of brackets does JSON use to define an array?
a. ()
b. {}
c. []
d. <>
Answer: c. []geeksforgeeks+1 - Which role in ML requires JSON skills?
a. SEO analyst
b. Machine learning engineer
c. HR manager
d. Systems operator
Answer: b. Machine learning engineeralooba+1 - What is the result of parsing an invalid JSON string?
a. Returns null
b. SyntaxError
c. Ignores the error
d. Converts to XML
Answer: b. SyntaxErrorw3schools+1 - Which of these is JSON commonly used for in ML API integration?
a. Authentication
b. Data transport
c. CDN acceleration
d. UI rendering
Answer: b. Data transportfingerlinksinfotech+1 - Which ML library supports JSON input for model training configuration?
a. scikit-learn
b. pandas
c. seaborn
d. matplotlib
Answer: a. scikit-learndigitalocean+1 - In ML, storing experiment results in JSON enables:
a. Unstructured logs
b. Structured analysis
c. Only visualization
d. Only numerical storage
Answer: b. Structured analysisfingerlinksinfotech+1 - Which of the following best describes JSON in ML workflows?
a. Closed standard
b. Proprietary format
c. Open standard
d. Only for Google
Answer: c. Open standardcrackyourinterview+1 - Which would be a valid key-value pair in JSON for an ML model result?
a. result: true
b. “result”: true
c. result = true
d. “result” == true
Answer: b. “result”: truetutorialspoint+1 - In ML, what is a typical way to update pipeline settings using JSON?
a. Rewriting code
b. Editing configuration files
c. Recompiling models
d. Restarting server
Answer: b. Editing configuration filesdigitalocean+1 - Which is TRUE about JSON in machine learning?
a. Only works with Java
b. Used for experiment tracking
c. Not suitable for nested data
d. No ML libraries use JSON
Answer: b. Used for experiment trackingfingerlinksinfotech+1
- https://www.geeksforgeeks.org/javascript/json/
- https://www.crackyourinterview.com/SubCategory-JSON-MCQ.aspx
- https://www.tutorialspoint.com/json/quiz_on_json_objects.htm
- https://www.w3schools.com/js/js_json.asp
- https://www.texau.com/glossary/javascript-object-notation
- https://www.fingerlinksinfotech.com/blog/unlocking-the-power-of-json-enhancing-machine-learning-and-data-science-tasks
- https://www.digitalocean.com/community/tutorials/json-for-finetuning-machine-learning-models
- https://www.geeksforgeeks.org/quizzes/json-handling-quiz/
- https://realpython.com/python-json/
- https://www.ultralytics.com/glossary/json
- https://www.includehelp.com/mcq/json-multiple-choice-questions-mcqs.aspx
- https://www.scribd.com/document/877462673/3-Python-MCQs-Exam
- https://dev.to/doumbouyah_dev/json-javascript-object-notation-the-universal-data-exchange-language-123l
- https://www.devopsschool.com/blog/top-50-question-and-answers-for-json/
- https://www.machinelearningplus.com/python-json-guide/
- https://www.datacamp.com/tutorial/json-data-python
- https://www.alooba.com/skills/tools/data-formats/javascript-object-notation/
- https://aticleworld.com/json-mcq/
- https://gist.github.com/cmota/f7919cd962a061126effb2d7118bec72
- https://pynative.com/python-json-exercise/