0% found this document useful (0 votes)
65 views1 page

Computer Programming Throuch C - R2013 - 15!05!2017

This document is an exam for a Computer Programming through C course, covering 5 units: 1) Basic C programming structures and a program to print student grades 2) Scope of variables, functions, and a program to calculate simple interest 3) Macros, 2D arrays, and a program to multiply matrices 4) Static and dynamic memory allocation, passing addresses to functions 5) Structures, command line arguments, files, and self-referential structures Students must answer 1 question from each unit, showing their work to receive credit.

Uploaded by

AkashKusumanchi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views1 page

Computer Programming Throuch C - R2013 - 15!05!2017

This document is an exam for a Computer Programming through C course, covering 5 units: 1) Basic C programming structures and a program to print student grades 2) Scope of variables, functions, and a program to calculate simple interest 3) Macros, 2D arrays, and a program to multiply matrices 4) Static and dynamic memory allocation, passing addresses to functions 5) Structures, command line arguments, files, and self-referential structures Students must answer 1 question from each unit, showing their work to receive credit.

Uploaded by

AkashKusumanchi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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

You might also like