Home / CSE / Javascript - CS :: Invocation and Performance Navigation

CSE :: Javascript - CS

  1. What is the purpose of lazy loading?

  2. A.

     Immediate loading is necessary

    B.

     Loading under command

    C.

     Immediate loading is not necessary

    D.

     None of the mentioned


  3. Where is the external JavaScript placed in the case of lazy loading?

  4. A.

     After window.onload event

    B.

     Before window.onload event

    C.

     All of the mentioned

    D.

     None of the mentioned


  5. What are the parameters of the attachEvent function?

  6. A.

     Function

    B.

     Function, Event

    C.

     Event, Function

    D.

     Event


  7. What is the result when the showPerformanceMetrics() is called before loading the remote script?

  8. A.

     Throws an exception

    B.

     Throws an error

    C.

     It will load by itself

    D.

     None of the mentioned


  9. Which of the following is an attribute to the script object?

  10. A.

     onclick

    B.

     onload

    C.

     onshow

    D.

     all of the mentioned


  11. Which is the method used to add an event listener?

  12. A.

     addEventListener()

    B.

     addListener()

    C.

     addEvent(Listener)

    D.

     addListener(Event)


  13. What is the purpose of the domLoading attribute?

  14. A.

     Document exists

    B.

     Document can load

    C.

     Document has loaded

    D.

     Document begins to load


  15. How is the render time calculated?

  16. A.

     Date.Now()

    B.

     Date.Now() – performance.timing.domLoading

    C.

     performance.domLoading

    D.

     Date.Now() – performance.domLoading


  17. The object whose properties are inherited by all instances of the class, and properties whose values are functions behaving like instance methods of the class, is

  18. A.

     Instance object

    B.

     Constructor object

    C.

     Destructor object

    D.

     Prototype object


  19. You can refresh the webpage in JavaScript by using

  20. A.

     window.reload

    B.

     location.reload

    C.

     window.refresh

    D.

     page.refresh