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

CSE :: Javascript - CS

  1. What is the function of the XML parser?

  2. A.

     Converts XML document to XML DOM object

    B.

     Converts XML DOM object to XML document

    C.

     Converts XML DOM object to a comment

    D.

     None of the mentioned


  3. What is the purpose of the method ActiveXObject()?

  4. A.

     Used to call automation object

    B.

     Used to reference automation object

    C.

     Used to instantiate automation object

    D.

     All of the mentioned


  5. What is the purpose of the url json?

  6. A.

     Belongs to JSON object

    B.

     Reference JSON formatted data

    C.

     Belongs to JSON

    D.

     None of the mentioned


  7. What is the parameter of the method Date.parse()?

  8. A.

     date

    B.

     string

    C.

     datestring

    D.

     string


  9. Which is the function in JavaScript that will print the current page in JavaScript?

  10. A.

     print()

    B.

     printcurrent()

    C.

     print(now)

    D.

     print(this)


  11. To which of the following object does the print() method belong to?

  12. A.

     window

    B.

     document

    C.

     hash

    D.

     none of the mentioned


  13. What will happen if the radix parameter of the parseInt() function is omitted?

  14. A.

     Runs in assumption

    B.

     Throws exception

    C.

     Aborts

    D.

     Taken as 0


  15. What will be the radix value if the string begins with 0x?

  16. A.

     13

    B.

     14

    C.

     15

    D.

     16


  17. What is the function of the parseInt() method?

  18. A.

     Parses a datatype and stores in an integer

    B.

     Parses a string and returns an integer

    C.

     Parses an integer and returns a string

    D.

     None of the mentioned


  19. What does it indicate when the radix value is 16?

  20. A.

     String begins with 0x

    B.

     String begins with 0

    C.

     String begins with 0P

    D.

     String begins with FF