Multiple choice technology programming languages

Output of the following program ? #!/user/bin/sh x=22 y=28 z=5 ((z =x+y + z)) echo $z

  1. Shows error at line 2

  2. Shows error at line 3

  3. 55

  4. Wont display any value

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

The bash script sets x=22, y=28, z=5, then evaluates z = x + y + z using arithmetic expansion (( )). This gives z = 22 + 28 + 5 = 55. The shebang typo (/user vs /usr) doesn't prevent execution.