Multiple choice technology programming languages

$input = "azz"; print ++$input;

  1. abc

  2. aza

  3. baa

  4. aaa

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

The ++ operator on a string increments it with alphanumeric carryover. 'azz' increments to 'baa' - the 'z' wraps to 'a' and carries to the next position, then the second 'z' also wraps and carries to the first character.