Multiple choice general knowledge

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

  1. 3

  2. 4A

  3. Undefined function or variable ‘A'

  4. 12

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

In MATLAB, after entering 'a=3' (lowercase), variable 'a' is assigned value 3. The next command 'B=A*4' tries to multiply uppercase 'A' by 4 and assign to 'B'. Since MATLAB is case-sensitive, 'A' and 'a' are different variables. 'A' was never defined, so MATLAB outputs 'Undefined function or variable 'A'.