Which of the following is a method for securing web applications against Cross-Site Request Forgery (CSRF)? MCQ with Answer and Explanation

Which of the following is a method for securing web applications against Cross-Site Request Forgery (CSRF)?
A. Input validation
B. Output encoding
C. Using HTTPS
D. Using anti-CSRF tokens
Answer: Option D
Solution (By JKSSB Mock Tests)
Anti-CSRF tokens are a common defense, where a unique token is included in forms and validated on the server to ensure the request originates from the legitimate user.

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1
What kind of network system acts as an automated internet address index matching 'Top Level Domain' entries to target primary server nodes?
A. The Mail Exchange Routing Agent
B. The File Transfer Protocol (FTP)
C. The Content Filter Core
D. The Domain Name System (DNS)

Correct Answer: Option D


Explanation:
DNS functions as a distributed directory database system that translates alphanumeric domain identities into actionable network routing IP numbers.

This question belongs to: Computer Internet and Web Technologies
Question #2
What is the function of the 'defer' attribute in a script tag?
A. To execute the script asynchronously
B. To prevent script from running
C. To delay script execution until the page has parsed
D. To load the script after page load

Correct Answer: Option C


Explanation:
The defer attribute tells the browser to continue parsing the HTML while the script downloads, and execute it after the document is parsed, in order.

This question belongs to: Computer Internet and Web Technologies
Question #3
What is the function of the 'ping' command in networking?
A. To test connectivity to a host
B. To display network configuration
C. To resolve domain names
D. To trace the route to a host

Correct Answer: Option A


Explanation:
Ping uses ICMP echo requests to test reachability of a host and measure round-trip time, a basic network diagnostic tool.

This question belongs to: Computer Internet and Web Technologies