JSON MCQ

JSON MCQ

  • Sharad Jaiswal
  • 22nd Nov, 2021

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 Questions

1) Which of the following isn't a JSON type?

  • A. String
  • B.Object
  • C.Date
  • D..Array

2) Which is the file extension of JSON?

  • A. .jsn
  • B..json
  • C..jn
  • D..js

3) Is whitespace matter in JSON?

  • A. No, it will be stripped out.
  • B.Yes, both inside and outside of strings
  • C.Yes, only within strings
  • D.Yes, only outside of strings

4) Who is the creator of JSON ?

  • A. Sergey Brin
  • B.Douglas Crockford
  • C.Liam Crockford
  • D.None of these

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

  • A. Parses a string from JSON to JSON2
  • B.Parses a string to integer
  • C.Parses a string to JSON
  • D.Parses integer to string

6) Which of the following is the fastest JavaScript parser?

  • A. Acron
  • B.JSLint
  • C.Esprima
  • D.Traceur

7) which of the following isn't create the object?

  • A. Object literals
  • B.Constructors
  • C.Object.create
  • D.Object Construct

8) What is the full form of JSON?

  • A. JavaScripts Object Notification.
  • B.JavaScript Object Notation.
  • C.None of these

9) JSON is a programming language?

  • A. True
  • B.False

10) What is JSON data?

  • A. Exchanging data
  • B.Non-exchanging data
  • C.Changing data
  • D.None of these

11) How many types of json data?

  • A. 6
  • B.4
  • C.7
  • D.3

12) Is empty JSON valid?

  • A. Yes
  • B.No

13) Is JSON a data format?

  • A. True
  • B.False

14) What is JSON return?

  • A. json. loads() takes in a string and returns a json object. json. dumps() takes in a json object and returns a string.
  • B.json. loads() takes in a json object and returns a json object. json. dumps() takes in a json object and returns a string.
  • C.json. loads() takes in a string and returns a json object. json. dumps() takes in a string and returns a string
  • D.None of these

15) Which is correct format of writting JSON name/value pair

  • A. "name" : "value"
  • B.name = 'value'
  • C.name = "value"
  • D.name : value'

16) What is correct MIME type for JSON ?

  • A. json/mime
  • B.application/js
  • C.application/xml
  • D.none of these

17) How do JSON provide Internationalization?

  • A. Using keys.
  • B.Using Unicode.
  • C.Using lang
  • D.Using datatype

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

  • A. 6
  • B.9
  • C.8
  • D.5

19) Which of the following is a JavaScript Compressor?

  • A. UgilifyJS
  • B.Esprima
  • C.Compressify
  • D.Acron

20) Which of the following is the fastest JavaScript parser?

  • A. JSLint
  • B.Traceu
  • C.Esprima
  • D.Acron

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

  • A. Parsing mode
  • B.Numeral system not to be used
  • C.Conversion mode
  • D.Numeral system to be used

22) Which one of these is supported as a JSON Value type?

  • A. Undefined
  • B.Infiniti
  • C.NaN
  • D.Null

23) What is a JSONStringer used for?

  • A. It is used to quickly create JSON text.
  • B.It is used to create number strings in JSON.
  • C.. It quickly converts JSON to Java strings
  • D.It is used to create JSON ordered pairs.

24) Which of the following code won't throw an error?

  • A. JSON.parse();
  • B.JSON.parse({})
  • C.JSON.parse(null);
  • D.JSON.parse(”);

25) The order of JSON objects is always preserved.

  • A. False
  • B.True

26) Which of the following are the features of json programming?

  • A. JSON is lightweight
  • B.JSON is easy to read and write
  • C.JSON is a text-based, human-readable data exchange format
  • D.All of the Above

27) Which of the following is not a type in JSON?

  • A. Date
  • B.Array
  • C.String
  • D.Object

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Mar
Splunk MCQ
01st
Nov
RDBMS MCQ
01st
Nov
Kotlin MCQ