Structured Programming Approach : Question Paper May 2016 - First Year Engineering (Semester 2) | Mumbai University (MU)
1 Answer

Structured Programming Approach - May 2016

First Year Engineering (Semester 2)

(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) What do you mean by algorithm? Which points you should consider while developing the algorithm.(4 marks) 1(b) What is a relation between ARRAYS and pointers? Explain with example(4 marks) 1(c) Explain? Operator in C. Write a program to determine maximum of 3 numbers using it.(4 marks) 1(d) What do you mean by extern and static storage class. Explain with example.(4 marks) 1(e) Difference between break and continue along with example.(4 marks) 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 marks) 2(b) Write a program to generate pascal triangle upto n rows.(10 marks) 3(a) What do you mean by Recursion? Write a program to reverse a number using recursion.(10 marks) 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 marks)
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 marks) 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 marks)

Write a program to generate following pattern.


      C B
    F E D
  J I H G
(5 marks) 5(a)(ii)
2 1      
1 2 3    
4 3 2 1  
1 2 3 4 5
(5 marks)
5(b) Write a program to calculate summation of series.
1 - x2/2! + x4/4! - x6/6! + x8/8! - ... upto n terms
(10 marks)
6(a) Write user defined functions to implement following string operations
i. Strcat       ii. Strlen
(10 marks)
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 marks)

Please log in to add an answer.

Continue reading...

The best way to discover useful content is by searching it.