ExamVeda
Login
Home
1
Which of the following property gives access to the JavaScript memory usage data?
Discuss
Answer & Solution
Answer: Option A
Solution:
The property performance.memory gives access to the JavaScript memory usage data.
2
What is the purpose of the timing property in the window.performance object?
Discuss
Answer & Solution
Answer: Option C
Solution:
Each performance.timing attribute shows the time of a navigation event (such as when the page was requested) or page load event (such as when the DOM began loading), measured in milliseconds.
3
Which of the following property is associated with the Response event?
Discuss
Answer & Solution
Answer: Option C
Solution:
The properties associated with the Response event are :
1. responseStart
2. responseEnd.
4
Which of the following computation is correct to calculate the time taken for page load once the page is received from the server?
Discuss
Answer & Solution
Answer: Option B
Solution:
The time taken for page load once the page is received from the server: loadEventEnd-responseEnd.
5
Which of the following property is associated with the Processing event?
Discuss
Answer & Solution
Answer: Option D
Solution:
The following properties are associated with the Processing event :
1. domComplete
2. domContentLoaded
3. domInteractive
4. domLoading
5. unLoadEnd
6
What does it indicate when the type attribute of the navigation object is set to 2?
Discuss
Answer & Solution
Answer: Option C
Solution:
When the type attribute of the navigation object is set to 2, it means that the navigation is done by moving back or forward through history.
7
What does the method Performance.now() return?
Discuss
Answer & Solution
Answer: Option B
Solution:
The Performance.now() method returns a DOMHighResTimeStamp, measured in milliseconds, accurate to one thousandth of a millisecond equal to the number of milliseconds since the PerformanceTiming.navigationStart property and the call to the method.
8
Which of the following is a read-only property?
Discuss
Answer & Solution
Answer: Option C
Solution:
Both PerformanceTiming.navigationStart and also the PerformanceTiming.fetchStart are a read-only properties.
9
Which of the following is an interface?
Discuss
Answer & Solution
Answer: Option D
Solution:
PerformanceTiming is an interface in JavaScript.
10
How many properties are associated with the Response event?
Discuss
Answer & Solution
Answer: Option B
Solution:
There are a total of 2 properties associated with the Response event namely :
1. PerformanceTiming.responseEnd
2. PerformanceTiming.responseStart