Sei sulla pagina 1di 2

Reg. No.

[15ECP305D]
KARPAGAM UNIVERSITY
KARPAGAM ACADEMY OF HIGHER EDUCATION

(Deemed University Established Under Section 3 of UGC Act 1956)


Coimbatore 641 021
(For the candidates admitted from 2015 onwards)
M.Sc DEGREE I INTERNAL TEST, JULY 2016
Second Semester
ELECTRONICS AND COMMUNICATION SYSTEMS
MAT LAB AND SIMULINK PROGRAMMING
Time: 2 Hours
Maximum Marks: 50
DATE:
SUBJECT CODE: 15ECP305D
PART A (20 X 1=20 Marks)
Answer ALL the Questions
1. M- files are always a______________.
a) Script files
b) xml
c) ruby
d) html
2. The input argument list is a list of names representing values that will be passed from the
caller to the function. These names are called __________________.
a) Input argument
b) output argument c) dummy arguments d) system
3. Which command is used to save a formatted string rather than printing?
a) fprintf
b)sprint
c) disp
d) echo
4. The highest-level graphics object in MATLAB is the _________.
a) root
b) stem
c) cell
d) branch
5. Each graphics object has a unique name called a __________.
a) root
b) handle
c) figure
d) cell
6. In Matlab, this keyword immediately moves to the next iteration of the loop:
a) update
b) goto
c) continue
d) break
7. _______are MATLAB statements that permit us to select and execute specific sections of
code.
a) Branches
b)Variable
c) Functions
d) Array.
8. Which of these is the way to access the first element in a vector named v, Let only a
vector.
a) v(0)
b) v(1)
c) v
d) v(: , 0)
9. Which of the following is used to see if two elements are equal in MATLAB?
a) !=
b) ==
c) isequal
d) =
10. A function is invoked by naming it in an expression together with a list of __________.
a) actual arguments b) input arguments c) output arguments d) dummy arguments
11. To display 'Question 2' in the command window, the correct command is
a) disp(Question 2)
b) display('Question 2')
c) disp('Question 2')
d ) Question 2
12. If vector = [1 2 3 4; 11 24 92 100; 345 65 90 1]. What will the value of a be equal to if this
code is entered into MATLAB >>[a b] = size (vector)?
a) 1 2 3 4
b) 12
c) 3
d)2
13. What is the value of ans that is printed when the following code is run: isnumeric(32)
a) 1
b) 0
c) 32
d) yes

14. Which of the following is used to see if two elements are not equal in MATLAB?
a) !=
b) ==
c) isequal
d) =
15. When used in the fprintf command, the \n is used to
a)add a space between any two characters b) add a line space (enter key)
c) place a number into the comment
d)clear the comment
16. When used in the fprintf command, the %g is used as the
a)single character display
b)fixed point display
c)string notation display
d)default number display
17. The num2str command
a) Converts a number to string
b)converts string to a number
c) concatenates numbers and strings
d)concatenates strings
18. _________ function returns a standard error message
a) ndgrid
b) nargchk
c) prod
d) diff.
19. The Shortcut is used to display the data result is
a) disp()
b) ;
c):
d)%
20. which of the following has highest precedence in matlab.
a) +
b) c) ()
d)*
PART B (3 X 10=30 Marks)
Answer THREE Questions
21. a) Describe Binary I/O functions in matlab.
or
b) Explain about formatted I/O functions with suitable examples.
22. a) Explain how to create user menus in matlab GUI with an example.
or
b) Explain the following
i) Popup Menus
ii) Textboxes
23. a) Explain about how to select the objects in matlab GUI.
or
b) Write notes on the components of Graphical user interface system in matlab.

Potrebbero piacerti anche