ExamVeda
Login
Home
21
How many read-only attributes are present in the navigator object?
Discuss
Answer & Solution
Answer: Option B
Solution:
There are a total of 2 read-only attributes present in the navigator object namely :
1. redirectCount
2. type
22
Why are HTTP redirects significant?
Discuss
Answer & Solution
Answer: Option B
Solution:
HTTP redirects are significant because they cause a complete roundtrip for each redirect. The original request is returned from the web server as either a 301 or a 302 with the path to the new location. The browser must then initialize a new TCP connection and send a new request for the new location.
23
Where does the DNS reply go to in a single HTTP redirect?
Discuss
Answer & Solution
Answer: Option A
Solution:
The DNS reply goes to the Browser in a single HTTP redirect.
24
How can one access the redirectCount property?
Discuss
Answer & Solution
Answer: Option B
Solution:
The redirectCount property can be accessed as : performance.navigation.redirectCount.
25
How many constant values can the property type be represented?
Discuss
Answer & Solution
Answer: Option C
Solution:
Totally 4 constant values can be represented by the property type.
26
Which of the following constants has the value 255?
Discuss
Answer & Solution
Answer: Option D
Solution:
TYPE_RESERVED: Has the value of 255 and is a catch-all for any navigation type not defined above.
27
What is the purpose of the constant TYPE_RELOAD?
Discuss
Answer & Solution
Answer: Option A
Solution:
TYPE_RELOAD: Has the value of 1, indicating that the current page was arrived at via a reload operation.
28
What does the constant TYPE_BACK_FORWRD indicate?
Discuss
Answer & Solution
Answer: Option A
Solution:
TYPE_BACK_FORWARD: Has the value of 2, indicating that the page was navigated to via the browser history, either using the back or forward buttons or programmatically through the browser’s history object.
29
Which of the following constants hold the value 2?
Discuss
Answer & Solution
Answer: Option C
Solution:
TYPE_BACK_FORWARD: Has the value of 2, indicating that the page was navigated to via the browser history, either using the back or forward buttons or programmatically through the browser’s history object.
30
Where does the DNS Lookup direct to ?
Discuss
Answer & Solution
Answer: Option D
Solution:
The DNS Lookup directs to the DNS Server.