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 JKExamLibrary)
Both X-Frame-Options and CSP's frame-ancestors directive can be used to control iframe embedding, preventing clickjacking.

This question belongs to: Computer Internet and Web Technologies

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1 Report Error
What structural element forms the separator dividing individual query parameter pairs inside a standard URL structure, such as '?id=1&page=2'?
A. The ampersand (&) character
B. The hash (#) character
C. The forward slash (/) character
D. The colon (:) character

Correct Answer: Option A


Explanation:
In a URL query string, the question mark (?) initiates the parameters, while individual key-value pairs are separated from each other using the ampersand (&) character.

This question belongs to: Computer Internet and Web Technologies
Question #2 Report Error
What status code is returned by a web server to indicate a '301' redirection?
A. Bad Gateway
B. Unauthorized Access
C. Request Timeout
D. Moved Permanently

Correct Answer: Option D


Explanation:
A 301 status code signifies a permanent redirection, indicating that the requested resource has been assigned a new permanent URI.

This question belongs to: Computer Internet and Web Technologies
Question #3 Report Error
Which of the following is a popular web browser for mobile devices?
A. Chrome for Android
B. Firefox for Android
C. All of the above
D. Safari for iOS

Correct Answer: Option C


Explanation:
All three are popular mobile web browsers for their respective platforms.

This question belongs to: Computer Internet and Web Technologies