logo
  • Home
  • Test & Rank
  • About
  • Training
  • Programming
  • CS
  • IT
  • IS
  • ECE
  • EEE
  • EE
  • Civil
  • Mechanical
  • Chemical
  • Metallurgy
  • Instrumentation
  • Aeronautical
  • Aerospace
  • Biotechnology
  • Mining
  • Marine
  • Agriculture
  • MCA
  • BCA
  • Internship
  • Jobs
  • Contact

MATLAB Multiple Choice Questions | MCQs | Quiz

MATLAB Interview Questions and Answers
Practice MATLAB questions and answers for interviews, campus placements, online tests, aptitude tests, quizzes and competitive exams.

Get Started

•   Input & Output
•   Arithmetic - 1
•   Arithmetic - 2
•   Algebra
•   Managing Variables
•   Input Errors - 1
•   Input Errors - 2
•   Variables & Assignments
•   Solving Equations
•   Vectors & Matrices - 1
•   Vectors & Matrices - 2
•   Functions
•   Graphics
•   Statistics
•   Plotting Multiple Curves
•   The MATLAB Interface
•   M Files
•   Loops
•   Presenting Results
•   Fine Tuning
•   Suppressing Output
•   Data Classes
•   Functions & Expressions
•   Complex Arithmetic
•   Linear Systems
•   Differentiation - 1
•   Differentiation - 2
•   Integration - 1
•   Integration - 2
•   Limits - 1
•   Limits - 2
•   Sums & Products - 1
•   Sums & Products - 2
•   Default Variables
•   Fourier Analysis - 1
•   Fourier Analysis - 2
•   Random No's Generation
•   Sparse Matrices - 1
•   Sparse Matrices - 2
•   Two Dimensional Plots - 1
•   Two Dimensional Plots - 2
•   Three Dimensional Plots
•   Customizing Graphics - 1
•   Customizing Graphics - 2
•   Branching - 1
•   Branching - 2
•   Logical Expressions - 1
•   Logical Expressions - 2
•   More about Loops - 1
•   More about Loops - 2
•   Input & Output Command-1
•   Input & Output Command-2
•   Screen Output - 1
•   Screen Output - 2
•   Evaluation - 1
•   Evaluation - 2
•   Debugging
•   Modeling - 1
•   Modeling - 2
•   Simulation - 1
•   Simulation - 2
•   Calling External Functions
•   Toolbox Distribution - 1
•   Toolbox Distribution - 2
•   Performance & Memory - 1
•   Performance & Memory - 2
•   System Commands - 1
•   System Commands - 2
•   Unexpected Outputs
•   Syntax Error - 1
•   Syntax Error - 2
•   Spelling Error - 1
•   Spelling Error - 2
•   Laplace Transform - 1
•   Laplace Transform - 2
•   Control Systems - 1
•   Control Systems - 2
•   Impulse Response - 1
•   Impulse Response - 2
•   Signals Operations - 1
•   Signals Operations - 2
•   Convolution - 1
•   Convolution - 2
•   Z Transform - 1
•   Z Transform - 2

Best Reference Books

MATLAB Books

MATLAB Tests

Certification Test
Internship Test
Job Test
All Tests
Top Rankers
Practice Test 1
Practice Test 2
Practice Test 3
Practice Test 4
Practice Test 5
Practice Test 6
Practice Test 7
Practice Test 8
Practice Test 9
Practice Test 10
Mock Test 1
Mock Test 2
Mock Test 3
Mock Test 4
Mock Test 5
Mock Test 6
Mock Test 7
Mock Test 8
Mock Test 9
Mock Test 10
« Prev Page
Next Page »

MATLAB Questions and Answers – Fine Tuning

Posted on December 12, 2018 by Manish

This set of MATLAB Multiple Choice Questions & Answers (MCQs) focuses on “Fine Tuning”.

1. How will one escape from printing graphs of variables, whose value gets changed for the program?
a) Use the clear all command at the beginning
b) Use the close all command at the beginning
c) Use the clc command
d) Cannot be escaped
View Answer

Answer: a
Explanation: The clear all command keeps all the local variables of the function unaffected i.e. they prevent their values from getting changed due to some previous usage of the function. The close all command closes all the graphs the clc command removes the written code.
advertisement

2. A loop is used to avoid repetitive writing of the same function in the code.
a) True
b) False
View Answer

Answer: a
Explanation: The purpose of using loops is to avoid writing the same line multiple times. The same line may be a particular function which computes a certain value. For the sake of accuracy, we may run the function multiple times, within a loop.

3. How will you return to execution from debugging mode?
a) Use the dbcont command
b) Use the return command
c) Use the dbcont & return command
d) Use the keyboard command
View Answer

Answer: c
Explanation: While debugging, the user can choose to insert a set of instruction to change the nature of the already written program. To return to continue execution, the user can enter either dbcont or the return command.

4. The plotting of 3d plots and 2d plots requires separate windows. But the user has entered the hold on command. What is to be done?
a) Use the pause command
b) Use the hold off command
c) Use the close command
d) Nothing can be done
View Answer

Answer: a
Explanation: The hold off command is necessary to plot multiple graphs in the same window. Thus multiple 2d graphs or multiple 3d graphs can be drawn on the same window. But the pause command is used to keep the plot of 2d graphs and wait before generating 3d graphs. The close command closes any existing graphs.

5. What will be the output of the following code?

advertisement
T=-5:1:5; y=sin(T); plot(T,y)

a) No output
b) A perfect sine curve
c) A broken sine curve
d) Cannot be determined
View Answer

Answer: c
Explanation: The sine curve is a continuous signal or a discrete signal. So the tendency of every point in the curve has to follow a radian frequency and not a step frequency. Here the frequency of time is stepping up by 1, so the sine curve will only consist of 11 values, which will lead to the sine curve appearing to be broken.
Output: matlab-questions-answers-fine-tuning-q5

6. How would you expect to see exponential inter-relation in a logarithmic scale?
a) A straight line
b) A curved line
c) Depends on the exponent
d) Depends on the log scale
View Answer

Answer: a
Explanation: The exponential inter-relation will appear as a straight line in a log scale. This is because logarithmic scale and exponential nature follow a linear relationship. If there are no other terms than exponentials in the expression, the graph will be a linear one.

7. There will be a problem in computing the logarithm of a negative number.
a) True
b) False
View Answer

Answer: b
Explanation: While trying to compute a value for the logarithm of a negative number, MATLAB will return an imaginary value. We can do problems which need to compute the logarithm of a negative number.

8. Global variables must be mentioned _____ an M-file.
a) at the top in
b) anywhere in
c) out of the
d) there is nothing called global variables
View Answer

Answer: a
Explanation: Mentioning the global variables at the top of an M-file allows the user to prevent any error rising to usage of the same variable unconsciously. If we declare it anywhere, it may so happen that we would need it at the beginning. Hence- it is plausible to declare it at the top of an M-file.
advertisement

9. To stop execution, press _____
a) Ctrl+C
b) Use pause command
c) Use end command
d) Use keyboard command
View Answer

Answer: a
Explanation: The pause/keyboard command is used to suspend execution for a certain time. If we press Ctrl+C, execution will be completely stopped. The end command is used to end loops of any kind.

10. The function definition is shown when we use the look for the command.
a) True
b) False
View Answer

Answer: b
Explanation: The look for command shows the H1 line used in a function. The look for command will describe only inbuilt functions and not user-defined function. The H1 line is comment line just after the function definition so the look for command does not return the function definition.

Sanfoundry Global Education & Learning Series – MATLAB.

To practice all areas of MATLAB, here is complete set of 1000+ Multiple Choice Questions and Answers.

« Prev Page - MATLAB Questions and Answers – Presenting Results
» Next Page - MATLAB Questions and Answers – Suppressing Output

« MATLAB Questions and Answers – Presenting Results
MATLAB Questions and Answers – Suppressing Output »
advertisement

Deep Dive @ Sanfoundry:

  1. C Tutorials
  2. MySQL Database Questions and Answers
  3. Java Programming Examples on Networking
  4. Java Programming Examples on File Handling
  5. C Questions and Answers
  6. Java Programming Examples on Classes
  7. Unix Questions and Answers
  8. C Programming Examples on File Handling
  9. C# Programming Examples on Threads
  10. MATLAB Questions and Answers
Manish Bhojasia
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him @ LinkedIn | Facebook | Twitter

Best Careers

Developer Tracks
SAN Developer
Linux Kernel Developer
Linux Driver Developer
Linux Network Developer

Live Training Photos
Mentoring
Software Productivity
GDB Assignment
Sanfoundry is No. 1 choice for Deep Hands-ON Trainings in SAN, Linux & C, Kernel Programming. Our Founder has trained employees of almost all Top Companies in India such as VMware, Citrix, Oracle, Motorola, Ericsson, Aricent, HP, Intuit, Microsoft, Cisco, SAP Labs, Siemens, Symantec, Redhat, Chelsio, Cavium, ST-Micro, Samsung, LG-Soft, Wipro, TCS, HCL, IBM, Accenture, HSBC, Mphasis, Tata-Elxsi, Tata VSNL, Mindtree, Cognizant and Startups.

Best Trainings

SAN I - Technology
SAN II - Admin
Linux Fundamentals
Advanced C Training
Linux-C Debugging
System Programming
Network Programming
Linux Threads
Kernel Programming
Kernel Debugging
Linux Device Drivers

Best Reference Books

Computer Science Books
Algorithm & Programming Books
Electronics Engineering Books
Electrical Engineering Books
Chemical Engineering Books
Civil Engineering Books
Mechanical Engineering Books
Industrial Engineering Books
Instrumentation Engg Books
Metallurgical Engineering Books
All Stream Best Books

Questions and Answers

1000 C Questions & Answers
1000 C++ Questions & Answers
1000 C# Questions & Answers
1000 Java Questions & Answers
1000 Linux Questions & Answers
1000 Python Questions
1000 PHP Questions & Answers
1000 Hadoop Questions
Cloud Computing Questions
Computer Science Questions
All Stream Questions & Answers

India Internships

Computer Science Internships
Instrumentation Internships
Electronics Internships
Electrical Internships
Mechanical Internships
Industrial Internships
Systems Internships
Chemical Internships
Civil Internships
IT Internships
All Stream Internships

About Sanfoundry

About Us
Copyright
Terms
Privacy Policy
Jobs
Bangalore Training
Online Training
Developers Track
Mentoring Sessions
Contact Us
Sitemap
© 2011 Sanfoundry. All Rights Reserved.