Question
for i = 1 :4: 5
y=i+1
clear i
end
a.
y=5; i=2
b.
y=5, printed twice
c.
Loop will run once, y=2
d.
Infinite loop
Posted under MATLAB
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be the output of the following code?
Similar Questions
Discover Related MCQs
Q. Clear will removes all graphs.
View solution
Q. How can we close all graphs in MATLAB?
View solution
Q. clc in a function will clear the function.
View solution
Q. ___________ will give a hint that the file is closed.
View solution
Q. To delete one variable but not the entire workspace, we need to mention the variable name after the clear command.
View solution
Q. What is the nature of storage of anything in MATLAB?
View solution
Q. What is the starting index of an array in MATLAB?
View solution
Q. All data types are converted to ____ before mathematical operations.
View solution
Q. What is the return type of angles in MATLAB?
View solution
Q. To represent only two digits after the decimal point, the format we use is ______
View solution
Q. How do we change the nature of the display of the numerical answer?
View solution
Q. Strings are stored in ____ variables.
View solution
Q. What are the minimum numbers of expressions which will be required to express a mathematical relation?
View solution
Q. The teacher has given the assignment to find the sum of 2 numbers. But the code should not contain the ‘+’ operator. What is to be done?
View solution
Q. A mathematical statement is a combination of functions and variables only.
View solution
Q. What is the command which can be used to see the expressions within a user-defined function in MATLAB?
View solution
Q. What are mathematical expressions?
View solution
Q. Which command is used to find the argument of a complex number?
View solution
Q. What is the class of the complex number?
View solution
Q. What is the argument of -1-i in MATLAB?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond MATLAB? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!