Multiple choice technology programming languages

$input = “abdce” =~ tr/abc/123 print $input;

  1. 123

  2. 123ce

  3. Cant modify constant item in translation

  4. 12d3e

  5. None of the above

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

Attempting to use the translation operator tr/// directly on a read-only string literal like “abdce” causes a fatal compilation error because translation modifies its operand in-place. Distractors assume successful translation or evaluation.