User Input and Screen Output – 2 MCQ’s

This set of MATLAB Multiple Choice Questions & Answers (MCQs) focuses on “User Input and Screen Output – 2″. 1. What is the output of the following code? sprintf(‘%E’,912) a) 9.120000E+02b) 9.120E+02c) 9.1200E+02d) 9.12000E+02 2. What is the output of the following code? sprintf(‘%d %d %d’,.1, .2.3) a) Errorb) ‘1.000000e-01 2.000000e-01 3.000000e-01’c) 1.000000e-01 2.000000e-01 3.000000e-01d) […]

Continue Reading

Commands for Parsing Input and Output – 2 MCQ’s

This set of MATLAB Multiple Choice Questions & Answers (MCQs) focuses on “Commands for Parsing Input and Output – 2″. 1. The nargout command is dependent on the number of outputs sought.a) Trueb) False 2. What is the output of the following command? function eclairs= honey(p,q) narginchk(2,5) disp(‘Yo, G!’) c=q+p; end honey(1) a) Syntactical Errorb) […]

Continue Reading