Sunday 27 October 2013

B.Tech-B.Tech Electrical and Electronics Engineering 2nd Sem COMPUTER PROGRAMMING(Acharya Nagarjuna University (ANU), Guntur, Andhra Pradesh-2012)

B.Tech-B.Tech Electrical and Electronics Engineering 2nd Sem COMPUTER PROGRAMMING(Acharya Nagarjuna University (ANU), Guntur, Andhra Pradesh-2012)

B.Tech. DEGREE EXAMINATION, MAY 2012.
(Examination at the end of First Year)
Paper VI – COMPUTER PROGRAMMING
Time : Three hours Maximum : 75 marks
Answer Question No. 1 compulsorily. (15 × 1 = 15)
Answer ONE question from each Unit. (4 × 15 = 60)
1. (a) Define numeric constant.
(b) Define coercion.
(c) What is preprocessor directive?
(d) Write a syntax for conditional operator
(e) What is a purpose of ‘continue’ statement?
(f) What is the return data type of function main ( )?
(g) Write any two string handing functions.
(h) What is on array?
(i) What is uses of pointers?
(j) What is use of exit ( ) function?
(k) How to initialize character array?
(l) Define union.
(m) Give any two file operations.
(n) What is meant by dynamic memory allocation?
(o) What is ‘enum’ data type?
UNIT I

2. (a) Explain about different types of operations in C.
(b) Write a program to find the largest of three given numbers.
Or
3. (a) What is identifier? Describe the limitation for declare the identifiers.
(b) Write a program to compute the electricity bill.
UNIT II
4. (a) Differentiate while and do-while loop.
(b) Write a program to check given number is perfect or not.
Or
5. (a) Explain about storage classes.
(b) Write program to display first 10 prime numbers.
UNIT III
6. (a) Explain about command line arguments with suitable example.
(b) Write a program to find reverse of the string without using build in function.
Or
7. (a) Write a syntax for one dimensional, two dimensional and pointer array’s.
(b) Write a program to compute product of two matrices.
UNIT IV
8. (a) Differential structures and unions.
(b) Write a program to student marks processing.
Or
9. (a) Demonstrate with an example of pointers to structures.
(b) Write a program to addition of two complex numbers.

No comments:

Post a Comment