What is the purpose of the method createDocumentFragment()?
A. Creates a fragment object
B. Creates a document fragment
C. Creates imaginary node object
D. None of the mentioned
Select an option to see the answer and solution.
What is the default value of the asyc attribute?
Select an option to see the answer and solution.
What is the method to create a data frame ?
A. frame(data)
B. frameData()
C. data.frame()
D. none of the mentioned
Select an option to see the answer and solution.
What is the purpose of creating a data frame?
A. Hold the page render time
B. Hold the load time
C. Hold the page render time & load time
D. None of the mentioned
Select an option to see the answer and solution.
Which of the following navigator object properties is the same in both Netscape and IE?
A. navigator.appCodeName
B. navigator.appName
C. navigator.appVersion
D. none of the mentioned
Select an option to see the answer and solution.
Which best explains getSelection()?
A. Returns the VALUE of a selected OPTION
B. Returns document.URL of the window in focus
C. Returns the value of cursor-selected text
D. Returns the VALUE of a checked radio input
Select an option to see the answer and solution.
Which of the following are client-side JavaScript object?
A. Database
B. Cursor
C. Client
D. FileUpLoad
Select an option to see the answer and solution.
What is the purpose of the method localeCompare()?
A. If the reference string comes before or after another string
B. If the reference string is validated
C. If the string is a reference string
D. None of the mentioned
Select an option to see the answer and solution.
When the “end” event fires on EOF when no more data will arrive, which function is called?
A. s.on("data",f);
B. s.on("end",f);
C. s.on("error",f);
D. s.on("default",f);
Select an option to see the answer and solution.
To define each of the set classes as a property of the sets object (namespace) for the module, the statement is
A. sets = sets.AbstractEnumerableSet.extend();
B. sets.SingletonSet = sets.AbstractEnumerableSet.extend(...);
C. sets.SingletonSet = sets.extend(...);
D. sets = sets.extend(...);
Select an option to see the answer and solution.
What is the purpose of lazy loading?
A. Immediate loading is necessary
B. Loading under command
C. Immediate loading is not necessary
D. None of the mentioned
Select an option to see the answer and solution.
Where is the external JavaScript placed in the case of lazy loading?
A. After window.onload event
B. Before window.onload event
C. All of the mentioned
D. None of the mentioned
Select an option to see the answer and solution.
What are the parameters of the attachEvent function?
A. Function
B. Function, Event
C. Event, Function
D. Event
Select an option to see the answer and solution.
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. None of the mentioned
Select an option to see the answer and solution.
Which of the following is an attribute to the script object?
A. onclick
B. onload
C. onshow
D. all of the mentioned
Select an option to see the answer and solution.
Which is the method used to add an event listener?
A. addEventListener()
B. addListener()
C. addEvent(Listener)
D. addListener(Event)
Select an option to see the answer and solution.
What is the purpose of the domLoading attribute?
A. Document exists
B. Document can load
C. Document has loaded
D. Document begins to load
Select an option to see the answer and solution.
How is the render time calculated?
A. Date.Now()
B. Date.Now() – performance.timing.domLoading
C. performance.domLoading
D. Date.Now() – performance.domLoading
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
You can refresh the webpage in JavaScript by using
A. window.reload
B. location.reload
C. window.refresh
D. page.refresh
Select an option to see the answer and solution.