Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Scientific Computing Lab

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What command clears all variables in workspace browser?

a)

clc

b)

delete

c)

clf

d)

clear

2.

Rules for naming variable: All variable name must contain letters, numbers and '_'s only.

a)

True

b)

False

3.

What is the correct MATLAB command for y = 3(x+2) when x = 2?

a)

>> y = 3*(x+2);

>> x =2;

b)

>> y = 3(x+2);

>> x = 2;

c)

>> x = 2;

>> y = 3*(x+2);

d)

>> x = 2;

>> y = 3(x+2);

4.

What is the size of an array if Arr = [9 3 5 7 10 0 16]?

a)

7x1

b)

7x7

c)

1x7

d)

7

5.

What pre-defined constant in MATLAB that is usually generated as a result of a division by zero?

a)

NaN

b)

eps

c)

Inf

d)

i,j

6.

True of False: The command window appears in the center of the desktop. Users enter command and see responses here.

a)

True

b)

False

c)

Maybe

7.

True or False: An array is a collection of data values organized into rows and colums.

a)

True

b)

False

c)

Maybe

8.

What is the correct MATLAB command for "Plot 

 y = x2−10x +15y\ =\ x^2-10x\ +15  from 0 to 10."

a)

>> x = 0:10;

>> y = x^2 - 10*x + 15;

>> plot(x,y)

b)

>> x = [0:10];

>> y = x^2 - 10*x + 15;

>> plot(x,y)

c)

>> y = x^2 - 10*x + 15;

>> x = 0:10;

>> plot(x,y)

d)

>> y = x^2 - 10*x + 15;

>> x = [0:10];

>> plot(x,y)

9.

Matlab stands for

a)

Matrix laboratory

b)

Mathematic laboratory

c)

Mathworks laboratory

d)

None of the above

10.

Matlab was invented by

a)

Cleve Moler

b)

Clyde Taylor

c)

Clive lloyd

d)

None of the above