C Programming 2080
Section A
Long Answer Questions
Attempt any TWO questions. [2 × 10 = 20]
AI is thinking...
1. What is an array? How an array can be passed as function argument? Write a program to arrange an array having 10 integer numbers in ascending order using function. [2+2+6]
AI is thinking...
2. Explain different control structures in C. Write a program in C to perform different arithmetic operations on two integers and display the result based on the choice made by the user using switch statement. [4+6]
AI is thinking...
3. Differentiate between structure and union?. Write a program to read employ id, name, post, and salary of 20 employee and display details of those employees whose post is 'clerk'. [4+6]
AI is thinking...
Section B
Short Answer Questions
Attempt any EIGHT questions. [8 × 5 = 40]
AI is thinking...
4. What is recursion? Write a program to find the factorial of a given integer using recursion. [1+4]
AI is thinking...
5. What are conversion specifiers? Explain the basic structure of a C program. [5]
AI is thinking...
6. Explain nested if-else ladder with a suitable example. [5]
AI is thinking...
7. Explain structure of for loop. Write a program to reverse a number entered by user. [5]
AI is thinking...
8. What is DMA? Write a program to read N numbers and find the largest and smallest number using DMA. [5]
AI is thinking...
9. Why data file needed? Write a program to write N numbers in file 'number.txt' and then read it and display only even numbers. [5]
AI is thinking...
10. List out different operators in C. Explain logical and relational operator. [5]
AI is thinking...
11. What is pointer? Explain the similarity between array and pointer in brief. [5]
AI is thinking...
12. Write short notes on:
- a. Macro
- b. Opening and closing file
AI is thinking...