Which of the following is a common method to prevent clickjacking? MCQ with Answer and Explanation

Which of the following is a common method to prevent clickjacking?
A. SameSite cookie attribute
B. Content-Security-Policy with frame-ancestors
C. Both A and B
D. X-Frame-Options header
Answer: Option C
Solution (By JKSSB Mock Tests)
Both X-Frame-Options and CSP's frame-ancestors directive can be used to control iframe embedding, preventing 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 does a '415 Unsupported Media Type' HTTP status code return imply about a client browser's interaction with a web application?
A. The server refuses to process the request because the payload data format or media type is not supported by the requested resource configuration.
B. The web server facility has completely crashed down.
C. The input security certificate has an expired authorization date.
D. The requested URL path has changed its location permanently.

Correct Answer: Option A


Explanation:
An HTTP 415 error occurs when the client uploads an asset or sends data in a format (such as an unapproved image type or raw XML instead of JSON) that the server script is not configured to accept.

This question belongs to: Computer Internet and Web Technologies
Question #2
What is the function of a DNS server?
A. To encrypt data
B. To manage email routing
C. To store web pages
D. To translate domain names to IP addresses

Correct Answer: Option D


Explanation:
DNS (Domain Name System) servers resolve human-readable domain names (e.g., www.example.com) to numerical IP addresses (e.g., 192.0.2.1) required for network routing.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which architectural system acts as a decentralized directory platform to track ownership rights and historical registrations of domain names globally?
A. WHOIS Database Directory
B. Local Router Cache Log
C. FTP Server File List
D. SMTP Routing Index Matrix

Correct Answer: Option A


Explanation:
WHOIS is a query and response protocol widely used for querying databases that store the registered users or assignees of an internet resource, such as a domain name.

This question belongs to: Computer Internet and Web Technologies