 MORE IN Structured Programming Approach
MU First Year Engineering (Semester 2)
Structured Programming Approach
May 2016
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) What do you mean by algorithm? Which points you should consider while developing the algorithm.
4 M
1(b) What is a relation between ARRAYS and pointers? Explain with example
4 M
1(c) Explain? Operator in C. Write a program to determine maximum of 3 numbers using it.
4 M
1(d) What do you mean by extern and static storage class. Explain with example.
4 M
1(e) Difference between break and continue along with example.
4 M

2(a) Write a program in C to accept an ARRAY A with n elements and Separate it into two different arrays an B and C in such a way that B contains Odd numbers and C contains Even numbers i.e. ARRAY A contains A={3,2,4,2,5,7,8} then B={3,5,7} , and C={2,4,2,8}
10 M
2(b) Write a program to generate pascal triangle upto n rows.
10 M

3(a) What do you mean by Recursion? Write a program to reverse a number using recursion.
10 M
3(b) Write a program to calculate compound interest and amount
Using formulate A = P(1+R/100)n where P=principal Amt, R is Rate of interest, n=number of years, Your program should make use of user defined function to calculate power. Program should accept P, R and n, Display interest earned for each year.
10 M

4(a) Explain structures in C? What do you mean by nested structure? A company needs to maintain data about their employees. Details to be maintained are Employee name, Department, Date of joining, Salary. Write a program which will store these details and list the employees whose salary is greater than Rs. 50000.00
10 M
4(b) Write a program to perform matrix multiplication using user defined functions Assume first is of size M × N, second matrix of size N × P and third matrix (Result matrix) is of size m × P
Program should include following user defined functions
i. read_matrix   ii. Display_matrix   iii. Multiply_matrix
10 M

Write a program to generate following pattern.
5(a)(i)
 A C B F E D J I H G O N M L K
5 M
5(a)(ii)
 1 2 1 1 2 3 4 3 2 1 1 2 3 4 5
5 M
5(b) Write a program to calculate summation of series.
1 - x2/2! + x4/4! - x6/6! + x8/8! - ... upto n terms
10 M

6(a) Write user defined functions to implement following string operations
i. Strcat       ii. Strlen
10 M
6(b) What do you mean by FILE? Write a program to copy text from one file to other after converting Lower case letters to Upper case vice versa. Keep other characters as it is.
10 M

More question papers from Structured Programming Approach