All challenges
Multiple ChoiceBeginner 30s

Go: cap

cap(slice) returns:
Options
  1. 1The length of elements currently held
  2. 2The type the slice elements carry
  3. 3The address of the backing array
  4. 4The capacity (underlying array size)

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