Sunteți pe pagina 1din 1

Course Code :13CT1102 / 2013 R-2013 Reg.

No :

GAYATRI VIDYA PARISHAD COLLEGE OF ENGINEERING (AUTONOMOUS)


Madhurawada, Visakhapatnam
Affiliated to JNT University – K, Kakinada
B.Tech. I-Semester Supplementary Examinations, May-2017
Computer Programming through C
(Common to Civil, ECE, EEE & Mechanical)

Date : 15-05-2017 Time : 3 Hours Max. Marks : 70


1. Answer ONE Question from each UNIT
2. All parts of a Question must be answered in one place to get valued.
3. All questions carry equal marks.

UNIT-I
1. a) Explain basic structure of C program through suitable example. 7 Marks
b) Write a program to enter percentage of student and print grade obtained using if else. 7 Marks

2. a) What do you mean from break, continue and goto statements? 7 Marks
b) Write a program to find reverse of a number entered using while loop. 7 Marks

UNIT-II
3. a) What do you mean from scope of variable? Explain local and global variables. 7 Marks
b) Write a program to find simple interest using function. 7 Marks

4. a) Explain Recursion through example? 7 Marks


b) Write a program to show how we can create user defined functions. 7 Marks

UNIT-III
5. a) Explain macros? How they are different from functions? 7 Marks
b) Write a program to find multiplication of two 3X3 matrix using two dimensional arrays. 7 Marks

6. a) Explain any five string library functions. 7 Marks


b) Write a program to find maximum of ten integer values using array. 7 Marks
UNIT-IV
7. a) Explain difference between static and dynamic memory allocations. 7 Marks
b) Write a program to show how address can be passed to functions 7 Marks

8. a) Explain how we can pass arrays elements to a function. 7 Marks


b) Explain following 7 Marks
i) dereferencing ii) Referencing iii) malloc function
UNIT-V
9. a) Explain various ways of declaring structures. 7 Marks
b) Write a program to add two numbers using command line arguments. 7 Marks
10. a) Write a program to write contents to a file through command line argument. 7 Marks
b) Explain self-referential structures and their use. 7 Marks

Page 1 of 1

S-ar putea să vă placă și