Multiple choice technology operating systems

which of the following command sets the previously undefined variable x to 40?

  1. typset x=32+8

  2. set x=32+8

  3. let x=32+8

  4. x=32+8

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

In Unix shells like KornShell (ksh), the let command is used for arithmetic evaluation. let x=32+8 evaluates the expression and assigns the integer value 40 to the variable x.