Home > MCQs > IT & Programming > MATLAB MCQs

MATLAB MCQ

Quizack provides you with the best MATLAB MCQ questions to help you prepare for your exams. You may learn everything there is to know about this program and how to use it efficiently with the help of our extensive subjects. To help you get the most out of MATLAB, we also offer hints and hacks for using it. Come see us right away to begin learning! 

MATLAB Quick Quiz

Question 1 of 10
  • Which statement creates a logical array that is 1 if the element in passwords contains a digit and 0 if it does not? Passwords = {'abcd' '1234' 'qwerty' 'love1'};

    Answer & Explanation

    Correct Answer: Cellfun(@(x) ~isempty(regexp(x, '\d')), passwords)

    Note: This Question is unanswered, help us to find answer for this one

  • You have loaded a dataset of people's heights into a 100 x 1 array called height. Which statement will return a 100 x 1 array, sim_height, with values from a normal distribution with the same mean and variance as your height data?

    Answer & Explanation

    Correct Answer: Sim_height = mean(height) + std(height) * randn(100, 1);

    Note: This Question is unanswered, help us to find answer for this one

  • For which of these arrays do mean, median, and mode return the same value?

    Answer & Explanation

    Correct Answer: [0 1 1 1 2]

    Note: This Question is unanswered, help us to find answer for this one

  • What does the Profiler track?

    Answer & Explanation

    Correct Answer: Execution time

    Note: This Question is unanswered, help us to find answer for this one

  • What is the size of b? a = [1 2 3]; b = repmat(a,2,3);

    Answer & Explanation

    Correct Answer: 2x9

    Note: This Question is unanswered, help us to find answer for this one

  • What built-in definition does i have?

    Answer & Explanation

    Correct Answer: Basic imaginary unit

    Note: This Question is unanswered, help us to find answer for this one

  • Which statement returns a cell array of the strings containing 'burger' from menu? Menu = {'hot dog' 'corn dog' 'regular burger' 'cheeseburger' 'veggie burger'}

    Answer & Explanation

    Correct Answer: Menu(contains(menu, 'burger'))

    Note: This Question is unanswered, help us to find answer for this one

  • Where in the UI can you see what variables have been created, their values, and their class?

    Answer & Explanation

    Correct Answer: Workspace

    Note: This Question is unanswered, help us to find answer for this one

  • Based on the code below, c is the _ of a. a = rand(1, 11); b = sort(a); c = b(1, ceil(end/2));

    Answer & Explanation

    Correct Answer: Median

    Note: This Question is unanswered, help us to find answer for this one

  • How do you access the value for the field name in structure S?

    Answer & Explanation

    Correct Answer: S.name

    Note: This Question is unanswered, help us to find answer for this one

  • MATLAB Quick Quiz

    battery

    Poor Results!

    You need a lot of improvement.

    Just don't give up!

    Correct Answers: 0/10

    Start Practicing with our MCQs given below.