Json(Computer Science ) Questions and Answers

Question 1. Which of the following code will throw an error?
  1.    JSON.parse(‘{}’);
  2.    JSON.parse(null);
  3.    JSON.parse(undefined);
  4.    JSON.parse(‘[]’);
Explanation:-
Answer: Option C. -> JSON.parse(undefined);

Question 2. Which of the following Protocol services uses JSON?
  1.    SMTP
  2.    HTTP
  3.    TCP/IP
  4.    Web Protocol
Explanation:-
Answer: Option B. -> HTTP

Question 3. Is JSON Case sensitive ?
  1.    Yes
  2.    No
Explanation:-
Answer: Option A. -> Yes

Question 4. What are two main structures compose JSON?
  1.    Arrays and Objects
  2.    Keys and values
  3.    Class and Objects
  4.    None of above
Explanation:-
Answer: Option B. -> Keys and values

Question 5. Which of these is correct about the JSON standard?
  1.    It is an open standard
  2.    It is privately developed
  3.    It requires a license to use
  4.    none of the above
Explanation:-
Answer: Option A. -> It is an open standard

Question 6. In modern websites what is the common usage for JSON?
  1.    To store information remotely.
  2.    To send and receive bits of data.
  3.    To store information locally.
  4.    none of the above
Explanation:-
Answer: Option B. -> To send and receive bits of data.

Question 7. Which of the following is the limitation of JSON?
  1.    Too many data types
  2.    Complicated debugging
  3.    Support for only C
  4.    No limit on arrays and objects
Explanation:-
Answer: Option B. -> Complicated debugging

Question 8. What is the common usage of Json on modern websites?
  1.    To store information locally
  2.    To store information remotely
  3.    To send and receive bits of data
  4.    All of the Above
Explanation:-
Answer: Option C. -> To send and receive bits of data

Question 9. JSON strings have used in___
  1.    Double quote
  2.    Single quote
  3.    Both 1 & 2
  4.    None of These
Explanation:-
Answer: Option A. -> Double quote

Question 10. Which is correct format of writting JSON name/value pair
  1.    'name : value'
  2.    name = 'value'
  3.    name = "value"
  4.    "name" : "value"
Explanation:-
Answer: Option D. -> "name" : "value"