Multiple choice technology architecture

Output of the below expression? COUNT=expr $COUNT + 1

  1. This sets the COUNT variable to the value given by the (+) operator.

  2. Concatenates the Given Expression inside Quotes.

  3. This adds 1 to the shell variable $COUNT.
  4. None.

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

The expr command evaluates arithmetic expressions. expr $COUNT + 1 adds 1 to the value of COUNT, and the backticks capture this result. The assignment stores the incremented value back into COUNT. This is shell arithmetic increment.