Exam4Training

Which bash commands result in a valid arithmetic expansion? (Choose three)

Which bash commands result in a valid arithmetic expansion? (Choose three)
A . TOTAL=$((5.3+2.2))
B. TOTAL=$[8/2]
C. TOTAL=$[8.4/2.1]
D. TOTAL=$[2.1*4]
E. TOTAL=$((5+2))
F. ((TOTAL++))

Answer: B ,E ,F

Exit mobile version