Search Header Logo

MATLAB Exam prep

Authored by Kim Xu

Computers

University

25 Questions

Used 66+ 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

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 BLANK QUESTION

30 sec • 5 pts

What is the result of

mod(25,6)?

5.

FILL IN THE BLANK QUESTION

1 min • 5 pts

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

new = 3*sum(x|y)

What is the value of new?

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?