All challenges
Multiple ChoiceBeginner 30s

C: assignment vs equality

if (x = 5) is an:
Options
  1. 1Assignment (always true if 5 != 0)
  2. 2An equality check against x == 5
  3. 3A syntax error before the program
  4. 4A comparison true only at x == 5

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle