MBD – Set 3 MCQ related to Model-Based Development (MBD) in automotive interviews. 1 / 10 What will be the output of this code? x = [2 4 6]; y = sum(x); disp(y) 24 12 6 2 / 10 In MATLAB, what does the command who do? Shows current variables in workspace Shows list of files Deletes variables 3 / 10 Which operator is used in MATLAB for logical AND? && & Both A and B 4 / 10 Which MATLAB function gives the maximum value in an array? largest() max() high() 5 / 10 What will the command zeros(3,2) create? A 2×3 matrix of zeros A 3×2 matrix of zeros A 3×2 matrix of random 6 / 10 What will be the output of this code? a = 5; b = 2; c = a^b; disp(c) 25 10 7 7 / 10 Which loop is used to repeat code a fixed number of times in MATLAB? for loop while loop do-while loop 8 / 10 Which function converts a string to a number in MATLAB? str2num strnum num2str 9 / 10 What will be the value of x after running x = 5 + 3 * 2 in MATLAB? 16 11 10 10 / 10 In MATLAB, which symbol is used for comments? // % # Your score isThe average score is 78% 0% Restart quiz