Explore topic-wise MCQs in Matlab.

This section includes 13 Mcqs, each offering curated multiple-choice questions to sharpen your Matlab knowledge and support exam preparation. Choose a topic below to get started.

1.

MEX files work on JAVA.

A. True
B. False
Answer» C.
2.

A function is not returning values according to desired input values. What should be the correction?

A. Include clear all at the beginning of function file
B. Include close all at the beginning of function file
C. Include echo on in the function file
D. Cannot be solved
Answer» B. Include close all at the beginning of function file
3.

A student is repeatedly calling a function file but gets no output. She has checked the file repeatedly so finally she asked her teacher about it. The teacher checked everything and finds the error and gives her a scolding. What is a silly mistake?

A. She was calling the wrong function
B. She has placed a semicolon at the end of the line which computes the desired values
C. She has called a .m file
D. She was calling a script file
Answer» C. She has called a .m file
4.

How do you create a function file in MATLAB?

A. Begin m-file with function definition
B. Begin script file with function definition
C. There is no such thing called function file
D. An m-file is only a function file
Answer» B. Begin script file with function definition
5.

What will the following command do?

A. Load the script file named ‘m1’
B. Load the function file named ‘m1’
C. Load the m-file named ‘m1’
D. There is no Load command in MATLABView Answer
Answer» D. There is no Load command in MATLABView Answer
6.

HOW_DO_YOU_CREATE_A_FUNCTION_FILE_IN_MATLAB??$

A. Begin m-file with function definition
B. Begin script file with function definition
C. There is no such thing called function file
D. An m-file is only a function file
Answer» B. Begin script file with function definition
7.

A_student_is_repeatedly_calling_a_function_file_but_gets_no_output._She_has_checked_the_file_repeatedly_so_finally_she_asked_her_teacher_about_it._The_teacher_checked_everything_and_finds_the_error_and_gives_her_a_scolding._What_is_a_silly_mistake?$

A. She was calling the wrong function
B. She has placed a semicolon at the end of the line which computes the desired values
C. She has called a .m file
D. She was calling a script file
Answer» C. She has called a .m file
8.

Saves the entire workspace as MAT fil?

A. Saves a variable named ‘workspace’ as MAT file
B. Saves the entire workspace as m file
C. Saves a variable named ‘workspace’ as m file
Answer» C. Saves a variable named ‚Äö√Ñ√∂‚àö√ë‚àö‚â§workspace‚Äö√Ñ√∂‚àö√ë‚àö¬• as m file
9.

Load the script file named ‘m1’$

A. Load the function file named ‘m1’
B. Load the m-file named ‘m1’
C. There is no Load command in MATLAB
Answer» C. There is no Load command in MATLAB
10.

What does the echo command do?

A. It echoes
B. It shows the comments present in Script files
C. It shows the commands and comments in MAT-files
D. It shows the commands and the comments in M-files
Answer» E.
11.

What is the basic difference between M-files and MAT-files?

A. There is no difference
B. MAT files are binary data files while m-files are ASCII text files
C. M files are binary data files while MAT-files are ASCII text files
D. There is no such thing as MAT files
Answer» C. M files are binary data files while MAT-files are ASCII text files
12.

What is the extension of script files?

A. .m
B. .mat
C. .script
D. There is a nothing called script file
Answer» B. .mat
13.

How would you start a debugger in MATLAB?

A. There is no M-file in MATLAB
B. Type edit in MATLAB and press Enter
C. Type debug in MATLAB and press Enter
D. Type M-file in MATLAB and press Enter
Answer» C. Type debug in MATLAB and press Enter