result=$((15 - 7)) uses correct syntax. result=$(15 - 7) uses command substitution which treats it as a command, not math. result=$[15 - 7] uses deprecated syntax. result=15 - 7 assigns a string, not calculation.
Final Answer:
result=$((15 - 7)) -> Option C
Quick Check:
Correct syntax = result=$((15 - 7)) [OK]
Quick Trick:Always use $(( )) for math, not $() or plain assignment [OK]
Common Mistakes:
MISTAKES
Confusing $() with $(( ))
Using deprecated $[] syntax
Assigning math as string
Master "Quoting and Expansion" in Bash Scripting
9 interactive learning modes - each teaches the same concept differently