Friday 12 June 2020

14. PGT Computer Science Question Discussion

Which of the following statements is/are TRUE ?

(a) In HTML, character entities are used to incorporate external content into a web page, such as images.

(b) Once a web server returns a cookie to a browser, the cookie will be included in all future requests from the browser to the same server.

(A) Only (a) is TRUE.

(B) Only (b) is TRUE.

(C) Both (a) and (b) are TRUE.

(D) Neither (a) nor (b) is TRUE.


Explanation:

Option (A) is false

Entities are used to display characters that have special HTML meaning, such as “<” and “>”.

Option (B) is false
 

No. Not every request sends the cookies. It depends on the cookie configuration and client-server connection. For example, if your cookie's secure option is set to true then it must be transmitted over a secure HTTPS connection. Means when you see that website with HTTP protocol then these cookies won't be sent by browsers as the secure flag is true.

If cookie has been expired it will not send with the request.

So correct ans is Option (D) 

No comments:

Post a Comment