nerdexam
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)
  • A
    6% (3)
  • B
    2% (1)
  • C
    83% (40)
  • D
    8% (4)

Community Discussion

No community discussion yet for this question.

Full EC0-350 Practice