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

Quiz: AI Coding Risks · Question 7 of 10

Which is the safer replacement for SQL built with f-strings?

Which is the safer replacement for SQL built with f-strings?

  1. A.Parameterised queries
  2. B.Adding more quotes around the input
  3. C.Converting the input to upper case
  4. D.Using eval() on the query
Answer & explanation

Correct answer: Parameterised queries

Parameters keep user data separate from SQL code.

Can you get the rest right without peeking?

Take the timed Quiz: AI Coding Risks quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →