0% found this document useful (0 votes)
25 views

C Programme Module 4 Question

Uploaded by

Mercy Saji
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)
25 views

C Programme Module 4 Question

Uploaded by

Mercy Saji
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/ 2

Course Code: EST102

PROGRAMMING IN C

MODULE -4

Part A

1. Differentiate between structure and union using an example. July 2021(3marks)


2. Illustrate the purpose of return statement using an example. July 2021(3marks)
3. Define formal parameters and actual parameters. lllustrate with an example.

July 2021(3marks)

4. With examples show how: July 2021(3marks)


(i) an array is passed as argument of a function.
(ii) individual elements of an array is passed as argument of a function.
5. Name the different types of parameter passing. Illustrate each of them with an example.
June 2022(3marks)
6. What are the advantages of modular programming? June 2022(3marks)

Part B

7. a) What are different storage classes in C? Give examples for each. (7marks)

b) Write a C program to:

(i) Create a structure with fields: Name, Address, Date of birth.


(ii) Read the above details for five students from user and display the details
July 2021(7marks)
OR
8. a) What is recursion? Write a C program to display Fibonacci series using recursive function.
(7marks)
b) Write a C program to sort N numbers using functions. July 2021(7marks)
9. a) What is the purpose of function declaration and function definition and function call?
With examples illustrate their syntax. (7marks)

b) Write a C program to : July 2021(7marks)

(i) Create a structure containing containing the fields: Name-. Price, Quantity, Total

Amount.

(ii) Use separate functions to read and print the data

OR

https://wa.me/+917994352111
10. a) What are different storage classes in C? Give examples for each. (7marks)

b) Write a C program to find sum and average of an array of integers using user defined functions.

July 2021(7marks)

11. a) Write a C program to :

(i) Create a structure containing the fields: Name, Price, Quantity, Total Amount.

(ii) Use separate functions to read and print the data. (7marks)

b) What are different storage classes in C? Give examples for each. June 2022(7marks)

OR

12. a) What are the main differences between structures and unions? Which is preferred in what
situation? Give examples. (7marks)
13. What is recursion? Write a C program to display Fibonacci series using recursive function.
June 2022(7marks)
14. Explain different storage classes in C with example. (7marks)
15. Explain recursion .Write a c program to perform factorial of a program using recursion
(7marks)
16. Write a C Program fibonacci series using recursion (7marks)
17. Explain different parameter passing methods with example. (7marks)
18. Write a C program to read and display student details and calculate grade using Structure
(7marks)
19. Write a C program to read and display employee details and salary using Structure (7marks)

You might also like