
Octave Loops
Authored by Mamoon Rashid
Mathematics
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which loop in octave runs until condition turns false?
for loop
while loop
Both of these
None of these
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
List the output of the following:
for i = 1:3:10
i
end
0 2 5 8
1 4 7 10
1 3 7 10
None of These
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
List the output of the following:
x=4
while x<8
x=x+2
endwhile
4 6 8
4 5 6 7 8
4 6 7
4 8
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which loop is an example of entry controlled loop
while
for
do until
None of These
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of following code:
f=1;
for i= f:3
f=f*i;
endfor
f
4
5
6
12
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?