Multiple choice

age = 16 and fave = "blue" which of the following statement is true?

  1. if (age == 16 AND fave == blue)

  2. if (age > "16" AND fave == "blue")

  3. if (age == "16" AND fave == "blue")

  4. if (age == 16 AND fave == "blue")

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Option D correctly compares the integer 16 and the string "blue" using the logical AND operator.