Lakshya Education MCQs

Question: What kind of an exception will be thrown if the string to parse is not valid JSON?
Options:
A.SyntaxError
B.ArrayOutOfBoundException
C.Both SyntaxError and ArrayOutOfBoundException
D.None of the mentioned
Answer: Option A

Submit Answer & Explaination

Earn Reward Points by submitting Detailed Explaination for this Question

More Questions on This Topic :

Question 1. Which of the following is a JavaScript Compressor?
  1.    Esprima
  2.    UgilifyJS
  3.    Acron
  4.    None of the mentioned
Answer: Option B
Question 2. What is the purpose of the UgilifyJS?
  1.    Exposes a simple API
  2.    Minification
  3.    Both Exposes a simple API and Minification
  4.    None of the mentioned
Answer: Option C
Question 3. Which of the following is the fastest JavaScript parser?
  1.    JSLint
  2.    Esprima
  3.    Acron
  4.    Traceur
Answer: Option C
Question 4. What will be the radix value of the parseInt() method when the string begins with any other value other than 0x and 0?
  1.    8
  2.    9
  3.    10
  4.    11
Answer: Option C
Question 5. What are the parameters of the method JSON.parse()?
  1.    text
  2.    reviver
  3.    both text and reviver
  4.    none of the mentioned
Answer: Option C
Question 6. What is the return type of the method parseInt()?
  1.    String
  2.    Float
  3.    Integer
  4.    Date
Answer: Option C

Check all Questions in this Topic : Click HERE