Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

GEM of MATLAB

Total questions: 59

Worksheet time: 1hrs 9mins

Name
Class
Date
1.
floor(14.8) =
a)
14.8
b)
15
c)
14
d)
0.8
2.
A=[14  12  15;
        34  25  35;
        94  51  75;
        40  52  55]
What is the dimension of A ?
a)
4x3
b)
3x4
c)
4x4
d)
3x3
3.
5*2^2*5 =
a)
100
b)
300
c)
500
d)
1000
4.
What is the result of this command
12 < 14
a)
1
b)
0
c)
12
d)
14
5.
What is the result of this command
sin(pi/2) + cosd(0)
a)
2
b)
0
c)
1
d)
infinity
6.
What is the result of this command
mod(100,5) + rem(100,5)
a)
0
b)
1
c)
100
d)
5
7.
A=[14  12  15;
        34  25  35;
        94  51  75;
        40  52  55]
sort(A), will sort A in what order ?
a)
columns-ascending
b)
columns-descending
c)
rows-ascending
d)
columns-descending
8.

.mlx file belongs to

a)

Matlab Script

b)

Matlab Live Editor Script

c)

Matlab App

d)

None of the mentioned above

9.

The file type used by Matlab app is

a)

.mapp

b)

.mlxapp

c)

.mlapp

d)

.app

10.

What will printed on Command window?

a)

4 5 6

b)

6 4 5

c)

nothing

d)

4 6

11.

Which command in MATLAB performs matrix operation on elements?

a)

a’

b)

a.*b

c)

a^3

d)

a_4

12.

MATLAB stands for

a)

Matrix laboratory

b)

Mat laboratory

c)

Maths laboratory

d)

None of these

13.

The basic building block of a matlab is ____

a)

Array

b)

Matrix

c)

Vector

d)

Scalar

14.

A___at the end of the command suppresses the screen outputs

a)

,

b)

:

c)

;

d)

:

15.

The meaning of command clc

a)

Clear command history pane

b)

Clear command window

c)

Clear editor window

d)

Clear current directory pane

16.

The command to delete the 3rd column of matrix A is

a)

A(:,3)=0

b)

A(3,:)=[ ]

c)

A(:,3)=[ ]

d)

None of these

17.
plot(x,y,'--r')
the output line will be ?
a)
dashed-red
b)
dash dotted-red
c)
dotted-red
d)
solid-red
18.
A=[1;2;3;4;5];
a)
A is Row Vector
b)
A is Column Vector
19.

The command prompt will display ?

a)

101

b)

1 x 101

c)

1 x 2

d)

101 x 1

20.

fprintf and disp do same function in matlab ?

a)

Yes

b)

No

21.

Satvik wish to get the scalar value of the number of the element in the vector . What should he prefer ?

a)

size()

b)

length()

c)

Anyone of size() or length()

d)

Don't know

22.

The variable q represent ?

a)

Phase angle

b)

Frequency of Sinusoidal

c)

Wavelength

d)

Can't Say

23.

The waveform shown represents

a)

AC

b)

DC

c)

Both AC as well as DC

d)

Don't Know

24.

The circuit used to convert AC to DC is

a)

Rectifier

b)

Filter

c)

Capactor

d)

None

25.

The number of element in the vector p = 1:4 is

a)

3

b)

4

c)

1

d)

2

26.

The result of following operation will be

a)

Matrix Multiplication of the two vector

b)

Element to Element Multiplication of two vector

c)

Error

d)

Can't Say anything

27.

What will be the output on executing this program?

a)
b)
c)
d)
28.

What is displayed in the command window when user gives a number 12 during the program execution?

a)
b)
c)
d)
29.
What is the result of this command
mod(100,5) + rem(100,5)
a)
0
b)
1
c)
100
d)
5
30.

Which of the following is not a tool in  MATLAB

a)

Command Window

b)

Current Directory

c)

Terminal

d)

Workspace

31.

Which of the following ,an expression shouldn't have in MATLAB

a)

manual entry

b)

built entry

c)

built-in functions

d)

user-defined function

32.

Which of the following is not a part of MATLAB

a)

Computation

b)

Object Orientation

c)

Visualization

d)

Programming

33.

How to plot a graph in MATLAB

a)

x : [value ofarray]

y : [value ofarray] plot(x, y)

b)

x : [value ofarray];

y : [value ofarray]; plot(x, y)

c)

x=[value ofarray];

y=[value ofarray]; plot(x, y)

d)

x : [value ofarray]

y : [value ofarray] plot(x, y);

34.

WHAT ARE THE SPECIAL MATRIX IN MATLAB

a)

HILBERT MATRIX

HILBERT INVERSE MATRIX

b)

PASCAL MATRIX

SQUARE MAGIC

c)

TOEPLITZ MATRIX

VANDERMONDE MATRIX

d)

EIGEN VALUE TEST MATRIX

SQUARE MATRIX

35.

What is the disadvantage of the whos function in MATLAB?

a)

It does not show the name of the variable

b)

It does not show the class of the variable

c)

It does not show the size of the variable

d)

It does not show the values of the variable

36.

What is the number of trapeziums if there are 6 ordinates?

a)

6

b)

7

c)

5

d)

4

37.

Using the trapezoidal rule will yield the following results except

a)

The answer is just an approximation

b)

The answer is over-estimated

c)

The answer is under-estimated

d)

The answer is not an exact answer

38.

Approximate the area under the curve over the given interval using 4 trapezoids.

a)

A

b)

B

c)

C

d)

D

39.

The approximate value for ∫011+x2dx\int_0^1\sqrt{1+x^2}dx  with 5 strips is

a)

1.25

b)

1.05

c)

1.15

d)

1.35

40.

Which of the followings statement is FALSE.

a)

8 strips , n = 8

b)

6 sub interval, n = 6

c)

7 ordintes , n = 7

d)

10 interval, n = 10

41.

Sum of the Eigen values of a matrix is equal to ----- of the matrix

a)

determinant

b)

product

c)

trace

d)

sum

42.

Eigen vectors corresponding to distinct Eigen values are

a)

linearly independent

b)

linearly dependent

c)

normalized

d)

none of the above

43.

Eigen values of an Identity matrix of order 4 are

a)

0, 1. 0, 1

b)

0, 0, 0, 0

c)

1, 1, 1, 1

d)

none of these

44.

If Eigen values of a matrix are 0, 1, 2 , then matrix will be

a)

Non-singular

b)

Singular

c)

Both

d)

None of these

45.

What is the trace of A = [ 2 3 6 ; 9 0 8 ; 6 2 3 ]

a)

5

b)

11

c)

17

d)

4

46.

Eigen values of the matrix [ 1 1 1 ; 1 1 1 ; 1 1 1 ] are

a)

0, 0, 0

b)

0, 0, 3

c)

1, 1, 1

d)

0, 0, 1

47.

Eigen Vectors corresponding to distinct Eigen values are

a)

Linearly Independent

b)

Linearly Dependent

c)

normalized

d)

None of the above

48.

What are the Eigen vectors with eigen values Zero?

a)

They are the one in RowSpace

b)

They are the one in NullSpace

c)

They are the one in ColumnSpace

49.

What is the rank of the matrix

a)

4

b)

3

c)

2

d)

1

50.

Estimate f(1.5) using Lagrange interpolation.

a)

−0.8673

b)

-0.7214

c)

−0.9773

d)

-0.9113

51.

For first-order ODEs, a type of auxiliary condition called an _____ is required to determine the constant and obtain a unique solution.

a)

Initial Value

b)

Boundary Value

c)

both answers are correct

52.

This method is called the Predictor-Corrector Method or Approach

a)

Heun's Method

b)

Euler's Method

c)

Runge-Kutta Method

53.

Equation for Modified Euler’s Method can be derived using _____

a)

Trapezoidal Method

b)

Simpson's Method

c)

Gauss Quadrature Method

54.

What is the formula for the regression line?

a)

y=mx+b

b)


y∧=ax+by^{\wedge}=ax+b

c)

y=a+bx

d)

y∧=a+bxy^{\wedge}=a+bx

55.

Factorize  3x+9

a)

3(x+3)

b)

x(3+3)

c)

9(x-3)

d)

3x(x+9)

56.

The common data type for numeric value(s) in MATLAB?

a)

int

b)

array

c)

char

d)

double

57.

WHAT ARE THE SPECIAL MATRIX IN MATLAB

a)

HILBERT MATRIX

HILBERT INVERSE MATRIX

b)

PASCAL MATRIX

SQUARE MAGIC

c)

TOEPLITZ MATRIX

VANDERMONDE MATRIX

d)

EIGEN VALUE TEST MATRIX

SQUARE MATRIX

59.

Consider the following line of commands

>> A = magic(5);

>> size = 5;

>> size(A);

What will be the output?

a)

MATLAB produces an error message

b)

5, 5

c)

No output because of the semicolon operator