ExamVeda
Login
Home
11
How many properties does a prototype object have?
Discuss
Answer & Solution
Answer: Option B
Solution:
There are a total of 7 properties in the prototype object namely :
1. perceivedTime
2. redirectTime
3. cacheTime
4. dnsLookupTime
5. tcpConnectionTime
6. roundTripTime
7. pageRenderTime
12
Which of the following does not serialize the undefined values or objects within an object?
Discuss
Answer & Solution
Answer: Option C
Solution:
JSON.stringify does not serialize undefined values or functions within an object.
13
How many properties are there in the interface PerformanceTiming?
Discuss
Answer & Solution
Answer: Option A
Solution:
There are a total of 23 properties associated with the interface PerformanceTiming.
14
How many properties are there in window.performance object?
Discuss
Answer & Solution
Answer: Option C
Solution:
There are totally 2 properties associated with the window.performance and they are:
1. navigation
2. type
15
What is the purpose of the navigation property in the window.performance object?
Discuss
Answer & Solution
Answer: Option B
Solution:
The navigation tells how the user navigated to the page.
16
What is the purpose of the property PerformanceTiming.navigationStart?
Discuss
Answer & Solution
Answer: Option C
Solution:
The PerformanceTiming.navigationStart read-only property returns an unsigned long long representing the moment, in miliseconds since the UNIX epoch, right after the prompt for unload terminates on the previous document in the same browsing context. If there is no previous document, this value will be the same as : PerformanceTiming.fetchStart.
17
Which of the following does JSON.stringify not serialize?
Discuss
Answer & Solution
Answer: Option C
Solution:
JSON.stringify does not serialize undefined values or functions within an object.
18
What is the purpose of the property PerformanceTiming.fetchStart?
Discuss
Answer & Solution
Answer: Option B
Solution:
The PerformanceTiming.fetchStart read-only property returns an unsigned long long representing the moment, in miliseconds since the UNIX epoch, the browser is ready to fetch the document using an HTTP request.
19
Which of the following property is associated with the Request event?
Discuss
Answer & Solution
Answer: Option A
Solution:
The Request event has only one property : requestStart.
20
Which of the following API can be used to get the timing without affecting the page loading process?
Discuss
Answer & Solution
Answer: Option C
Solution:
The timing code is in the page, so it affects how the page loads and the time that takes.. The Navigation Timing API can be used to get the timing without affecting the page loading process.