Search Header Logo

MATLAB Exam prep

Authored by Kim Xu

Computers

University

Used 70+ times

MATLAB Exam prep
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the symbol for division?

\

/

%

^

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

x = 2;

if x > 2

y = 2*x;

elseif x < 2

y = 3*x;

else

y = 6*x;

end

What is y?

2

4

6

12

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

vec = [1 6 20 3 2];

[m, n] = max(vec);

What is the value of n?

5

20

3

2

4.

FILL IN THE BLANKS QUESTION

30 sec • 5 pts

What is the result of

mod(25,6)?

(a)  

5.

FILL IN THE BLANKS QUESTION

1 min • 5 pts

x = [1 0 0]; y = [0 1 0];

new = 3*sum(x|y)

What is the value of new?

(a)  

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

for index = 1:2:10

v = index*3;

end

How many iterations of the loop will

this code perform?

3

5

6

12

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

sum([1; 5; 3; 3; 7])

5

7

19

5

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?