Which of the following is a method to prevent SQL injection attacks? MCQ with Answer and Explanation

Which of the following is a method to prevent SQL injection attacks?
A. Using parameterized queries
B. Installing antivirus
C. Using a firewall
D. Using strong passwords
Answer: Option A
Solution (By JKExamLibrary)
Parameterized queries are a programming technique that prevents SQL injection by treating user input as data, not as part of the SQL command.

This question belongs to: Computer Cyber Security

Discuss this Question (0)

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

Practice More Cyber Security Questions

Question #1 Report Error
What type of attack vector uses a malicious payload embedded within a macro script to spread automatically through contacts when an infected spreadsheet is opened?
A. Boot Sector Threat
B. Logic Bomb Tracking
C. Network Sniffer
D. Macro Virus

Correct Answer: Option D


Explanation:
Macro viruses hijack application macro scripting automated sequences inside productivity suites, executing commands and spreading code when documents are opened.

This question belongs to: Computer Cyber Security
Question #2 Report Error
What form of targeted phishing threat focuses explicitly on high-level corporate personnel like CEOs or financial directors to pull down business access codes?
A. Whaling Attack
B. Spam Blasting
C. Vishing Routine
D. Smishing Campaign

Correct Answer: Option A


Explanation:
Whaling is a highly specialized phishing variant designed to target C-suite executives and high-value corporate decision makers.

This question belongs to: Computer Cyber Security
Question #3 Report Error
Which type of malware encrypts a victim's files and demands a ransom for the decryption key?
A. Ransomware
B. Virus
C. Spyware
D. Worm

Correct Answer: Option A


Explanation:
Ransomware is a type of malware that denies access to a user's data by encrypting it and then demands a ransom for the decryption key.

This question belongs to: Computer Cyber Security