All challenges
Multiple ChoiceIntermediate 30s

select default

A select statement with a default case:
Options
  1. 1Never blocks — default runs if no other case is ready
  2. 2Panics with no cases, since select needs at least one ready
  3. 3Blocks forever, waiting for some case to become ready
  4. 4Only works with one channel, silently ignoring the rest

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