Sail E0 Webinar

MCQs

Total Questions : 25 | Page 3 of 3 pages
Question 21. Give an example of JSON object?
  1.    Data is in name/value pairs
  2.    Data is separated by comma
  3.    Curly brackets hold objects
  4.    Square bracket holds arrays
 Discuss Question
Answer: Option D. -> Square bracket holds arrays
Question 22. What are the data types supported by JSON?
  1.    Number
  2.    String
  3.    Boolean
  4.    Array
 Discuss Question
Answer: Option A. -> Number
Question 23. Why must one use JSON over XML?
  1.    It is faster and lighter than XML as on the wire data format
  2.    XML data is typeless while JSON objects are typed
  3.    JSON types: Number, Array, Boolean, String
  4.    XML data are all string
 Discuss Question
Answer: Option B. -> XML data is typeless while JSON objects are typed
Question 24. What is the return type of the method parseInt()?
  1.    String
  2.    Float
  3.    Integer
  4.    Date
 Discuss Question
Answer: Option C. -> Integer
Question 25. What is the purpose of the method JSON
  1.    Parses a string to integer
  2.    Parses a string to JSON
  3.    Parses a string from JSON to JSON2
  4.    Parses integer to string
 Discuss Question
Answer: Option B. -> Parses a string to JSON

Latest Videos

Latest Test Papers