What is the purpose of the 'X-Frame-Options' HTTP header? MCQ with Answer and Explanation

What is the purpose of the 'X-Frame-Options' HTTP header?
A. To set cookies
B. To enable CORS
C. To prevent clickjacking by controlling iframe embedding
D. To specify content security policy
Answer: Option C
Solution (By JKSSB Mock Tests)
X-Frame-Options is used to indicate whether a browser should be allowed to render a page in a , , or , helping to prevent clickjacking.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Internet and Web Technologies Questions

Question #1
What is the function of the 'ping' tool in relation to a URL?
A. To check if the web server is reachable
B. To test website speed
C. To resolve the domain to an IP
D. To trace the network route

Correct Answer: Option A


Explanation:
Ping sends ICMP echo requests to the host to determine connectivity and round-trip time.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which top-level domain designation (TLD) was originally designed for network infrastructure providers but has since evolved into a general-purpose choice open to everyone?
A. .mil
B. .edu
C. .gov
D. .net

Correct Answer: Option D


Explanation:
The '.net' top-level domain stands for 'network' and was initially intended for organizations involved in networking technologies, though it is now an open domain.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which of the following is a popular web-based diagramming tool?
A. Creately
B. All of the above
C. Draw.io
D. Lucidchart

Correct Answer: Option B


Explanation:
Lucidchart, Draw.io, and Creately are all web-based tools for creating diagrams and flowcharts.

This question belongs to: Computer Internet and Web Technologies