← 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?
- A.Parameterised queries
- B.Adding more quotes around the input
- C.Converting the input to upper case
- 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 →