Multiple choice general knowledge

The MATLAB output on Command Window for the last command entered is syms A a=3 B=A*4

  1. 3

  2. 4*A

  3. Undefined function or variable ‘A'

  4. 12

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

When A is declared symbolic (syms A), MATLAB treats it as a symbolic variable, not a numeric one. The expression B = A*4 produces the symbolic result 4*A, not the numeric value 12. Option C is wrong because A was defined symbolically, not as an undefined variable. Options A and D incorrectly assume numeric evaluation.