Sail E0 Webinar

MCQs

Total Questions : 69 | Page 3 of 7 pages
Question 21. What is the purpose of the radix parameter in the parseInt() method?
  1.    Numeral system not to be used
  2.    Numeral system to be used
  3.    Convertion mode
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> Numeral system to be used
Question 22. What will be the radix value of the parseInt() method when the string begins with 0?
  1.    6
  2.    7
  3.    8
  4.    9
 Discuss Question
Answer: Option C. -> 8
Question 23. What is the purpose of the method JSON.parse()?
  1.    Parses a string to integer
  2.    Parses a string to JSON
  3.    Parses a string from JSON to JSON2
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> Parses a string to JSON
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 are the parameters of the method JSON.parse()?
  1.    text
  2.    reviver
  3.    both text and reviver
  4.    none of the mentioned
 Discuss Question
Answer: Option C. -> both text and reviver
Question 26. 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
 Discuss Question
Answer: Option C. -> 10
Question 27. What kind of an exception will be thrown if the string to parse is not valid JSON?
  1.    SyntaxError
  2.    ArrayOutOfBoundException
  3.    Both SyntaxError and ArrayOutOfBoundException
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> SyntaxError
Question 28. Which of the following is a JavaScript Compressor?
  1.    Esprima
  2.    UgilifyJS
  3.    Acron
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> UgilifyJS
Question 29. 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
 Discuss Question
Answer: Option C. -> Both Exposes a simple API and Minification
Question 30. Which of the following is the fastest JavaScript parser?
  1.    JSLint
  2.    Esprima
  3.    Acron
  4.    Traceur
 Discuss Question
Answer: Option C. -> Acron

Latest Videos

Latest Test Papers