Json MCQ Questions And Answers - Java Technologies
Json MCQs : This section focuses on "basics" of Json. These Multiple Choice Questions (MCQ) should be practiced to improve the Json skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. JSON stands for?
A. Java Object Notation
B. Google Object Notation
C. JavaScript Object Notation
D. Jenkins Object Notation
View Answer
Ans : C
Explanation: JSON (JavaScript Object Notation) is a data storage and communication format based on key-value pair of JavaScript object literals.
2. JSON is used for communication between javascript and serverside technologies.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, JSON is used for communication between javascript and serverside technologies.
3. JSON supports?
A. Objects
B. Arrays
C. Primitives
D. All of the above
View Answer
Ans : D
Explanation: JSON supports Objects, Arrays, Primitives (strings, numbers, boolean values (true/false), null) data types.
4. ____________ creates a new object with the specified prototype object and properties.
A. Create
B. Object.create
C. Object.get
D. Object.set
View Answer
Ans : B
Explanation: Object.create creates a new object with the specified prototype object and properties.
5. What is the default value of a constructor’s prototype?
A. 0
B. 1
C. null
D. -1
View Answer
Ans : C
Explanation: A plain, empty object that derives from Object.prototype is the default value of a constructor’s prototype
6. Which of the following are benefits of JSON over XML?
A. It is faster and lighter than XML as on the wire data format
B. XML data is typeless while JSON objects are typed
C. XML data are all string
D. All of the above
View Answer
Ans : D
Explanation: All of the above are benefits of JSON over XML.
7. JSON is based on ECMAScript.
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, JSON is based on ECMAScript.
8. Which is correct format of writting JSON name/value pair
A. 'name : value'
B. 'name = 'value'
C. ' name = "value"
D. "name" : "value"
View Answer
Ans : D
Explanation: "name" : "value"
9. Which of the following is not a type in JSON?
A. Date
B. Object
C. Array
D. String
View Answer
Ans : A
Explanation: date is not a valid type in JSON
10. What is correct MIME type for JSON ?
A. application/js
B. application/json
C. json/mime
D. application/xml
View Answer
Ans : B
Explanation: application/json is correct MIME type for JSON
Discussion