Question Paper: Structured Programming Approach : Question Paper May 2015 - First Year Engineering (Semester 2) | Mumbai University (MU)
0

Structured Programming Approach - May 2015

First Year Engineering (Semester 2)

TOTAL MARKS: 80
TOTAL TIME: 3 HOURS
(1) Question 1 is compulsory.
(2) Attempt any three from the remaining questions.
(3) Assume data if required.
(4) Figures to the right indicate full marks.
1 (a) Explain following bitwise operator with example:-
i) Bitwise Right shift operator
ii) Bitwise X-OR operator
(4 marks)
1 (b) Find output of the following statenal
int x=20, y, ip;
ip=& x;
y=(
ip)++;
printf(%d \n"
(4 marks)
1 (c) Explain nested structure with example.(4 marks) 1 (d) Explain need of flowchart and draw a flowchart to check enter no is prime or not.(4 marks) 1 (e) Explain following statement with example.
(i) goto (ii) continue
(4 marks)
2 (a) Explain syntax of switch case? Discuss what is need of break statement in switch case? Write a program to count vowel using switch case.(10 marks) 2 (b) Write a program to display following pattern

1) A B C D
A B C
A B
A

2) 1
1 2 A
1 2 3 A B
1 2 3 4 A B C
(10 marks) 3 (a) i) Explain difference between while and do-while loop.
ii) Write a program to find out binary equivalent of given decimal number.
(10 marks)
3 (b) Define a function to check whether enter square matrix is symetric or not. Pass square matrix as a argument from main program to function.(10 marks) 4 (a) Write a program to evaluate the value of the standard deviation and display the result. $$ sd=\sqrt{\sum^n_{i=1} (xi-\overline{x}^2 /n} $$ x = Average of all no is array.(10 marks) 4 (b) (i) Explain string function for following operation with example.
i) Copy n char from source string to destination
ii) Joining of two string.
(5 marks)
4 (b) (ii) Write a program to find reverse of given string without using string library function.(5 marks) 5 (a) Define a structure cricket which consist following members
i) players name
ii) country name
iii) batting average
input 20 player information of test playing country. Write a program which will display detail information of player with given player name.
(10 marks)
5 (b) What do you mean by recursion? Write a program to find out summation of n numbers using recursions.(10 marks) 6 (a) (i) Explain call by value and call by reference with necessary example.(8 marks) 6 (a) (ii)) Explain following storage class with example.
i) Static ii) extern
(4 marks)
6 (b) Write a algorithm and program to generate a factor of given no.(8 marks)

Please log in to add an answer.