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. X-Frame-Options header
B. Both A and B
C. SameSite cookie attribute
D. Content-Security-Policy with frame-ancestors
Answer: Option B
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
Which of the following is a method to secure cookies against cross-site scripting attacks?
A. SameSite flag
B. All of the above
C. Secure flag
D. HttpOnly flag

Correct Answer: Option B


Explanation:
HttpOnly prevents client-side script access, Secure ensures transmission over HTTPS, and SameSite restricts cross-site requests, all enhancing cookie security.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which of the following is a technology used for server-side scripting?
A. JavaScript (client-side)
B. HTML
C. CSS
D. PHP

Correct Answer: Option D


Explanation:
PHP is a widely-used server-side scripting language for web development, while JavaScript is typically client-side, and CSS/HTML are for presentation and structure.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which of the following parameters represents an accurate description of the web development framework component called 'API' (Application Programming Interface)?
A. The physical processing chip architecture used inside server hubs
B. A set of defined protocols and tools that allow different software applications to communicate and exchange data with one another over the web
C. An unlinked text archive folder stored on network devices
D. A specialized local browser button designed to wipe history traces

Correct Answer: Option B


Explanation:
Web APIs define clear communication contracts and endpoints, allowing backend services, mobile apps, and third-party tools to integrate and share data seamlessly.

This question belongs to: Computer Internet and Web Technologies