What is SQL injection? How to prevent it?

What is SQL injection? How to prevent it?

From the SPCBL Assistant Programmer 2022 – Written exam, question 4 of 11.

More from this paper