🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: SQL Injection: all 10 questions

Quiz: SQL Injection · Question 6 of 10

What is the root cause of SQL injection?

What is the root cause of SQL injection?

  1. A.Using a slow database
  2. B.Building a query by joining user input into the SQL text, so input can change the query's structure
  3. C.Not using HTTPS
  4. D.Storing passwords in plain text
Answer & explanation

Correct answer: Building a query by joining user input into the SQL text, so input can change the query's structure

Parameterised queries keep data separate from code.

Can you get the rest right without peeking?

Take the timed Quiz: SQL Injection quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →