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

CSE :: Javascript - CS

  1. Which function is used to stop the time logging?

  2. A.

     stopTimeLogging()

    B.

     stop()

    C.

     finish()

    D.

     abort()


  3. The lexical scooping in JavaScript is based on which of the following?

  4. A.

     Segments

    B.

     Blocks

    C.

     Functions

    D.

     Entire code


  5. What is the return data type of the property accept that belongs to the Input element?

  6. A.

     integer

    B.

     string

    C.

     boolean

    D.

     float


  7. What is the purpose of the property width belonging to the ImageData element?

  8. A.

     Number of data

    B.

     Number of pixels

    C.

     Number of pixels per row of data

    D.

     All of the mentioned


  9. What is the purpose of the adoptNode() method?

  10. A.

     Removes node

    B.

     Makes it ready for insertion

    C.

     Removes node and Makes it ready for insertion

    D.

     None of the mentioned


  11. What is the function of the method importNode()?

  12. A.

     Copies without removing

    B.

     Copies and removes

    C.

     Only copies

    D.

     Only removes


  13. How can you create a node for comment in JavaScript?

  14. A.

     comment()

    B.

     createComment()

    C.

     Comm()

    D.

     None of the mentioned


  15. How can you dispatch a synthetic event object?

  16. A.

     dispatchEvent()

    B.

     dispatch()

    C.

     dispatch(Event)

    D.

     None of the mentioned


  17. How do you specifically execute a command in JavaScript?

  18. A.

     execcommand()

    B.

     exec(command)

    C.

     execCommand()

    D.

     exec(command id)


  19. What is necessary when we need to create a new field in craft?

  20. A.

     Type of the input

    B.

     Type of the output

    C.

     Type of the field

    D.

     All of the mentioned