916). What is the purpose of lazy loading?

[A] Immediate loading is necessary
[B] Loading under command
[C]Immediate loading is not necessary
[D]Loading after a definite interval

Show Answer

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

[A]After window.onload event
[B] Before window.onload event
[C] In the header tag
[D]In the HTML tag

Show Answer

918). What are the parameters of the attachEvent function?

[A]Function
[B] Function, Event
[C]Event, Function
[D]Event

Show Answer

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

[A]Throws an exception
[B]Throws an error
[C]It will load by itself
[D] Throws an exception and It will load by itself

Show Answer

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

[A]onclick
[B]onload
[C]onshow
[D]onhover

Show Answer

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

[A]addEventListener()
[B]addListener()
[C]addEvent(Listener)
[D]addListener(Event)

Show Answer

922). What is the purpose of the domLoading attribute?

[A]Document exists
[B]Document can load
[C]Document has loaded
[D]Document begins to load

Show Answer

923). How is the render time calculated?

[A]Date.Now()
[B]Date.Now() – performance.timing.domLoading
[C]performance.domLoading
[D]Date.Now() – performance.domLoading

Show Answer

924). 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 _____________

[A]Instance object
[B]Constructor object
[C] Destructor object
[D] Prototype object

Show Answer

925). You can refresh the webpage in JavaScript by using ___________

[A]window.reload
[B]location.reload
[C]window.refresh
[D]page.refresh

Show Answer