100% found this document useful (3 votes)
10K views5 pages

Matlab MCQ Quiz

This document provides a 20 question multiple choice quiz about basic MATLAB concepts to test knowledge. The questions cover topics like array indexing, function return types, operators, loops, variables, commands, and MATLAB features and history. Answers are revealed by clicking a link. The quiz is intended to check fundamental MATLAB understanding.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
10K views5 pages

Matlab MCQ Quiz

This document provides a 20 question multiple choice quiz about basic MATLAB concepts to test knowledge. The questions cover topics like array indexing, function return types, operators, loops, variables, commands, and MATLAB features and history. Answers are revealed by clicking a link. The quiz is intended to check fundamental MATLAB understanding.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

By OnlineInterviewQuestions.

com
Matlab MCQ Quiz

Take Matlab Quiz To test your Knowledge


Below are few Matlab MCQ test that checks your basic knowledge of Matlab. This Matlab Test contains
around 20 questions of multiple choice with 4 options. You have to select the right answer to a question. You
can see the correct answer by clicking view answer link.

Q1. Index of an array in MATLAB start with

A. 0
B. 1
C. Depends on the class of array
D. Unknown

Q2. What is the return type of angles function in MATLAB ?

A. Degrees
B. Radians
C. Radians & Degrees
D. Depends on the argument

Q3. What is use of abs function in Matlab?

A. returns the square root of number.


B. returns magnitude of a number.
C. returns power of number
D. None of these

Q4. What will be the output of atan2(-1,1) in Matlab?

A. Error
B. pi/4
C. 0.7854
Q5. Which character is used to print new line in a fprintf statement?

A. \n
B. \nl
C. \nml
D. \nxt

Q6. Which of following command is used to clear command window in Matlab?

A. clear
B. clc
C. close all
D. clear all

Q7. ____ is used to check if two elements are equal in MATLAB?

A. !=
B. ==
C. isequal
D. =

Q8. What is output of A = [1 0 2]; b = [3 0 7]; c=a.*b;

A. [2 0 21]
B. [3 0 14]
C. [14 0 3]
D. [7 0 3]

Q9. Keys combition used to stop execution of a command in MATLAB?

A. ctrl+c
B. ctrl+s
C. ctrl+b
D. ctrl+enter

Q10. Which class is used in Matlab to store the complex number?


A. Double
B. symbolic
C. character
D. array

Q11. Which of the following is a switch-case structure?

A. Logical structure
B. Conditional structure
C. Hierarchical structure
D. Multidimensional structure

Q12. Which of the following is a Assignment operator in matlab?

A. '+'
B. ‘=’
C. '*'
D. '$'

Q13. The continue statement exits the current iteration In nested loops.

A. True
B. False

Q14. .......... is not a pre-defined variable in Matlab.

A. inf
B. pi
C. i
D. gravity

Q15. Which of the following Matlab command clears all data and variables stored in
memory?
A. clear
B. clc
C. delete
D. None of the above

Q16. Which of the following is the the output of cat=['cat' 'dog']?

A. cat dog
B. cat&dog
C. catdog
D. CatDog

Q17. Which of the following is the disadvantage of Matlab?

A. Matlab is a fourth-generation high-level language


B. Being compiler independent makes Matlab more efficient and productive
C. Matlab codes are written in sentences and executed one by one
D. Matlab is an interpreted language thus it can be very slow.

Q18. What are the features of Matlab?

A. Full Graphics Capabilities


B. Platform Independent
C. Ease of Use & Good Source of Help
D. All of the above

Q19. When was MATLAB 9.7 R2019b released?

A. May 2019
B. Sep 2019
C. Aug 2019
D. July 2019

Q20. Which of the following command lists the current variable in Matlab?

A. Type
B. Who
C. Pwd
D. Date

Please Visit OnlineInterviewquestions.com to download more pdfs

You might also like