0% found this document useful (0 votes)
16 views4 pages

Sec 2 Matlab It Sem 4

Uploaded by

rhtkmrsrivastava
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views4 pages

Sec 2 Matlab It Sem 4

Uploaded by

rhtkmrsrivastava
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

coPYRIGHT RESERVED End Sem(Iv) —

IT (SEC - 2)

2022
Time : 3 hours

Full Marks : 75
Candidates are required to give their answers in
their own words as far as practicable.
The figures in the margin indicate full marks.
Answer from both the Groups as directed.

Group - A
(Compulsory)
1. Choose the correct answer of the following :
' _ 1x10 =10
(a) MATLAB stands for :° |
(i) Math Laboratory
(i) Matrix Laboratory
(iii) Math works
(iv) None of these
(b) MATLAB command that clears all data and
variables stored in the memory :
(i) CLS -~ (i) Clear
(iii) Delete - (iv) None of these

ZD - 136/3 , | (Turn over)

Scanned by TapScanner
(c) To print a newline in a fprintf statement the
escape sequence character used is :
(i) \t (i) \nl
(i) \n (iv) \nxt
(d) To add a comment to the mfile the MATLAB
command is . A )
(i) % | (i)
(iii) Comment (') (v) &

(e) To join one or more strings into a single


string is known as :
(i) Concatenation
(if) Joining
(iii) String conversion

(iv) All of these

() With fprintf command the % g is used as


the :
(i) Single character display
(ii) Fixed point display

(iii) String notation display

(iv) Default number display

ZD - 136/3 (2) - Contd.

4———#

Scanned by TapScanner
(@) Which of thege is not
an aspect of a for /
Wh ile loop ?
(i) Update (i) Initialization
(iii) Runner (iv) Condition
(h) In MATLAB, keyword immediately move
s to
the next iteration of the loop is :
/]

(i) update (i) goto


(ili) continue (iv) break
(i) The operator used to see if two elements
are equal in MATLAB is :
(i) != (i) ==
(iii) is equal (iv) =
(J) ~ Index of an array in MATLAB start with :
() O (i) 1
(i) Depends on the class of array
(iv) Unknown . :
2. Explainthe MATLAB environmentindetail. 5
Group -B
Answer any four questions of the following :
15%x4 =60
3. (a) Write down the important features of
MATLAB.
(b) Wirite a program in MATLAB to plot a graphics
for random number between 1 to 100. |
ZD - 136/3 (3) (Turn over)

Scanned by TapScanner_
4. (a) What are the basic graph plotg used in
MATLAB ?
(b) Explain about different operators used in
MATLAB.

5. (a) Write a program in MATLAB to check a year


is leap year or not.
(b) Explain about different constants used in
MATLAB.

6. (a) What are the basic functions used in


- MATLAB ?
(b) Create a user define function to check a
number is prime or not.

7. (a) What are the different control statements


used in MATLAB ? Explain with example.
(b) Write a function in MATLAB to find the
- _factorial of a given number.

8. (a) What do you mean by array ? Explain it with


context to MATLAB with example.
(b) Write a program in MATLAB to create one
dimensional array to store 10 elements and
store it in descending order.
\/
%

ZD - 136/3 (160) (4) End Sem(lV) — -


i1 (s EC-2)

Scanned by TapScanner

You might also like