Home / CSE / Javascript - CS :: Parsing, Benchmarking and Logging

CSE :: Javascript - CS

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

  2. A.

     Numeral system not to be used

    B.

     Numeral system to be used

    C.

     Convertion mode

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. What will be the radix value of the parseInt() method when the string begins with 0?

  4. A.

     6

    B.

     7

    C.

     8

    D.

     9

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  6. A.

     Parses a string to integer

    B.

     Parses a string to JSON

    C.

     Parses a string from JSON to JSON2

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. What is the return type of the method parseInt()?

  8. A.

     String

    B.

     Float

    C.

     Integer

    D.

     Date

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. What are the parameters of the method JSON.parse()?

  10. A.

     text

    B.

     reviver

    C.

     both text and reviver

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. What will be the radix value of the parseInt() method when the string begins with any other value other than 0x and 0?

  12. A.

     8

    B.

     9

    C.

     10

    D.

     11

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. What kind of an exception will be thrown if the string to parse is not valid JSON?

  14. A.

     SyntaxError

    B.

     ArrayOutOfBoundException

    C.

     Both SyntaxError and ArrayOutOfBoundException

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the following is a JavaScript Compressor?

  16. A.

     Esprima

    B.

     UgilifyJS

    C.

     Acron

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. What is the purpose of the UgilifyJS?

  18. A.

     Exposes a simple API

    B.

     Minification

    C.

     Both Exposes a simple API and Minification

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  20. A.

     JSLint

    B.

     Esprima

    C.

     Acron

    D.

     Traceur

    View Answer

    Workspace

    Discuss Discuss in Forum