Computer Programming 3rd Semester ME MG University December 2012

MG University 3rd semester Btech question for Mechanical Engineering

B.TECH DEGREE EXAMINATION, DECEMBER 2012

Third Semester

BRANCH: MECHANICAL ENGINEERING AU 010 305 ,ME 010 305

COMPUTER PROGRAMMING (AU, ME, PE)

(New Scheme-Regular/Improvement/Supplementary)

Time : Three Hours Maximum:100 Marks

Part A

Answer all questions.

Each Question Carries 3 marks

1. What is type casting?

2. What are the searching methods for arrays ?

3. What is recursion

4.What are the advantages of dynamic memory allocation?

5. What are the bit wise logical operators?

Part B

Answer all questions

Each Question carries 5 marks

6. Explanation with an example the syntax of do-while loop

7. What is a structure? Explain with an example?

8. What is a macro? Explain its use with an example?

9. Explain with the example the usage of chain of pointers

10. What are the characteristics of text and binary files.

Part C

Answer all questions Each question carries 12 marks

11. Discuss with examples, the branching instructions in C

or

12. Write a C program to evaluate ex to an accuracy of 10-5

13. Explain with examples, how multidimensional arrays are handled in C

or

14. Write a program to multiply two matrices A and B.

15. Write a function that will scan a character string passed as an argument and convert all lowercase characters in to their uppercase equivalents

or

16. Write a nested macro that gives the minimum of 3 values.

17. Write a function, using pointer parameter, that reverses the elements of a given array.

or

18. What are the different types of linked list?Give uses of each type.

19. Explain with a program the usage of bitwise shift operators

or

20.Write a program to append one file to another

computer-programming-3rd-semester-me-mg-university-december-2012