A

Admin • 828.03K Points
Coach

Q. Which method helps prevent SQL Injection in Python applications?

  • (A) Using string concatenation for queries
  • (B) Using parameterized queries or prepared statements
  • (C) Using eval() on user input
  • (D) Disabling database logging
  • Correct Answer - Option(B)
  • Views: 14
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
Parameterized queries separate code and data, preventing injection attacks.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.