EC-Council
EC0-350 · Question #695
Look at the following SQL query. SELECT * FROM product WHERE PCategory='computers' or 1=1--' What will it return? Select the best answer.
The correct answer is C. All computers and everything else. See the full explanation below for the reasoning.
Question
Look at the following SQL query. SELECT * FROM product WHERE PCategory='computers' or 1=1--' What will it return? Select the best answer.
Options
- AAll computers and all 1's
- BAll computers
- CAll computers and everything else
- DEverything except computers
How the community answered
(48 responses)- A6% (3)
- B2% (1)
- C83% (40)
- D8% (4)
Community Discussion
No community discussion yet for this question.