MU First Year Engineering (Semester 2)
Structured Programming Approach
May 2015
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


1 (a) Explain following bitwise operator with example:-
i) Bitwise Right shift operator
ii) Bitwise X-OR operator
4 M
1 (b) Find output of the following statenal
int x=20, y, *ip;
ip=& x;
y=(*ip)++;
printf(%d \n"
4 M
1 (c) Explain nested structure with example.
4 M
1 (d) Explain need of flowchart and draw a flowchart to check enter no is prime or not.
4 M
1 (e) Explain following statement with example.
(i) goto (ii) continue
4 M

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 M
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 M

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 M
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 M

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 M
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 M
4 (b) (ii) Write a program to find reverse of given string without using string library function.
5 M

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 M
5 (b) What do you mean by recursion? Write a program to find out summation of n numbers using recursions.
10 M

6 (a) (i) Explain call by value and call by reference with necessary example.
8 M
6 (a) (ii)) Explain following storage class with example.
i) Static ii) extern
4 M
6 (b) Write a algorithm and program to generate a factor of given no.
8 M



More question papers from Structured Programming Approach
SPONSORED ADVERTISEMENTS