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 specify content security policy
B. To enable CORS
C. To set cookies
D. To prevent clickjacking by controlling iframe embedding
Answer: Option D
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
Which of the following options provides an accurate description of a 'Web Browser Extension' or 'Add-on'?
A. The main operational routing server used by a global ISP facility
B. A dedicated database table used to archive old email attachments
C. A small custom software component that adds specific features, tools, or modifications to a web browser's core interface
D. A piece of hardware that boosts wireless internet signals

Correct Answer: Option C


Explanation:
Browser extensions are modular software components built on web standards that install directly into the browser to extend its functionality, such as adding ad blockers or translation tools.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which type of internet network technology delivers exceptionally fast data transmission speeds using light pulses traveling through flexible glass or plastic filaments?
A. Coaxial Cable Grid
B. Fiber Optic Broadband
C. Dial-up Modem lines
D. Satellite Radio Array

Correct Answer: Option B


Explanation:
Fiber optic connections transmit data as light pulses through glass or plastic fibers, offering much higher bandwidth and lower latency than copper wire networks.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which of the following HTTP methods is used to submit data to be processed to a specified resource, often resulting in a state change or side effects on the server?
A. POST
B. GET
C. OPTIONS
D. HEAD

Correct Answer: Option A


Explanation:
The POST method is designed to send data to a server to create or update a resource, frequently used during form submissions.

This question belongs to: Computer Internet and Web Technologies