JSON MCQ For Freshers & Experienced

  • Question 1) Which of the following isn't a JSON type?
  • Question 2) Which is the file extension of JSON?
  • Question 3) Is whitespace matter in JSON?
  • Question 4) Who is the creator of JSON ?
  • Question 5) What is the purpose of method JSON.parse()?
  • Question 6) Which of the following is the fastest JavaScript parser?
  • Question 7) which of the following isn't create the object?
  • Question 8) What is the full form of JSON?
  • Question 9) JSON is a programming language?
  • Question 10) What is JSON data?
  • Question 11) How many types of json data?
  • Question 12) Is empty JSON valid?
  • Question 13) Is JSON a data format?
  • Sharad Jaiswal
  • 24th Aug, 2020
  • 955 Followers

We have listed here the best JSON MCQ Questions for your basic knowledge of JSON. This JSON MCQ Test contains 25 Multiple Choice Questions. You have to select the right answer to every question.

JSON MCQ
Updated ON

24th Aug, 2020

No. of Questions

25

Posted In

MCQ

Author

Sharad Jaiswal

JSON MCQ Questions

Q1. Which of the following isn't a JSON type?

  • String
  • Object
  • Date
  • .Array
View Answer
Date isn't a type of JSON.

Q2. Which is the file extension of JSON?

  • .jsn
  • .json
  • .jn
  • .js
View Answer
.json is the file extension of JSON.

Q3. Is whitespace matter in JSON?

  • No, it will be stripped out.
  • Yes, both inside and outside of strings
  • Yes, only within strings
  • Yes, only outside of strings
View Answer
Yes, only within strings.

Q4. Who is the creator of JSON ?

  • Sergey Brin
  • Douglas Crockford
  • Liam Crockford
  • None of these
View Answer
Douglas Crockford is the Creator of JSON.

Q5. What is the purpose of method JSON.parse()?

  • Parses a string from JSON to JSON2
  • Parses a string to integer
  • Parses a string to JSON
  • Parses integer to string
View Answer
The purpose of JSON.parse() method is parses a string to JSON.

Q6. Which of the following is the fastest JavaScript parser?

  • Acron
  • JSLint
  • Esprima
  • Traceur
View Answer
Acron is the fastest JavaScript parser.

Q7. which of the following isn't create the object?

  • Object literals
  • Constructors
  • Object.create
  • Object Construct
View Answer
Object Construct isn't create the object.

Q8. What is the full form of JSON?

  • JavaScripts Object Notation.
  • JavaScript Object Notation.
  • None of these
View Answer
The full form of JSON is JavaScript Object Notation.

Q9. JSON is a programming language?

  • True
  • False
View Answer
False, JSON isn't a programming language.

Q10. What is JSON data?

  • Exchanging data
  • Non-exchanging data
  • Changing data
  • None of these
View Answer
JSON data is exchanging data between brower and server.

Q11. How many types of json data?

  • 6
  • 4
  • 7
  • 3
View Answer
At the granular level, JSON consist of 6 data types.

Q12. Is empty JSON valid?

  • Yes
  • No
View Answer
Yes, empty JSON is valid.

Q13. Is JSON a data format?

  • True
  • False
View Answer
True, JSON is a data format

Q14. What is JSON return?

  • json. loads() takes in a string and returns a json object. json. dumps() takes in a json object and returns a string.
  • json. loads() takes in a json object and returns a json object. json. dumps() takes in a json object and returns a string.
  • json. loads() takes in a string and returns a json object. json. dumps() takes in a string and returns a string
  • None of these
View Answer
json. loads() takes in a string and returns a json object. json. dumps() takes in a json object and returns a string.

Q15. Which is correct format of writting JSON name/value pair

  • "name" : "value"
  • name = 'value'
  • name = "value"
  • name : value'
View Answer
"name" : "value" is the correct format of writting JSON name/value pair.

Q16. What is correct MIME type for JSON ?

  • json/mime
  • application/js
  • application/xml
  • none of these
View Answer
Application/json is correct MIME type for JSON.

Q17. How do JSON provide Internationalization?

  • Using keys.
  • Using Unicode.
  • Using lang
  • Using datatype
View Answer
JSON provide Internationalization Using Unicode.

Q18. What is the radix value of the parseInt() method when the string begins with 0?

  • 6
  • 9
  • 8
  • 5
View Answer
8 is the radix value of the parseInt() method when the string begins with 0

Q19. Which of the following is a JavaScript Compressor?

  • UgilifyJS
  • Esprima
  • Compressify
  • Acron
View Answer
UgilifyJS is a JavaScript Compressor

Q20. Which of the following is the fastest JavaScript parser?

  • JSLint
  • Traceu
  • Esprima
  • Acron
View Answer
Acron is the fastest JavaScript parser.

Q21. What is the purpose of the radix parameter in the parseInt() method?

  • Parsing mode
  • Numeral system not to be used
  • Conversion mode
  • Numeral system to be used
View Answer
The purpose of the radix is numeral system to be used in the parseInt() method.

Q22. Which one of these is supported as a JSON Value type?

  • Undefined
  • Infiniti
  • NaN
  • Null
View Answer
Null is supported as a JSON Value type.

Q23. What is a JSONStringer used for?

  • It is used to quickly create JSON text.
  • It is used to create number strings in JSON.
  • . It quickly converts JSON to Java strings
  • It is used to create JSON ordered pairs.
View Answer
It is used to quickly create JSON text.

Q24. Which of the following code won't throw an error?

  • JSON.parse();
  • JSON.parse({})
  • JSON.parse(null);
  • JSON.parse(”);
View Answer
JSON.parse(null); code won't throw an error.

Q25. The order of JSON objects is always preserved.

  • False
  • True
View Answer
False, the order of JSON objects isn't always preserved.

About Author :

  • Author of JSON MCQ

    Sharad Jaiswal

    Sharad Jaiswal is Sr. Web Developer from Noida area. He have rich experience in PHP, Angular Js, React, javascript and Node .If you any query or project on these programming you can drop your enquiry in comment section.

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.