| END TERM EXAMINATION | |
| Second Semester[BTech] | May-June, 2025 |
| Paper Code: ES-102 | Subject : Programming In C |
| Time:3 Hours | Maximum Marks: 60 |
| Note: Attempt five questions in all including Q. No. 1 which is compulsory. Internal Choice is indicated. | |
| Q1 Attempt all parts. (5×4=20) | |
| (a) What is an Algorithm?. | |
| (b) Write a statement to find maximum of two numbers using ternary operator. | |
| (c) Give any 2 two differences between Structures & Union. | |
| (d) List any 5 Date and time functions. | |
| (e) What are preprocessor directives? | |
| Q2. Write short note with providing suitable example (any two): (2×5=10) | |
| a) Bitwise Operator b) Incriment & Decriment Operator c) Operator Precedence | |
| OR | |
| Q3. a) Write an algorithm and draw flowchart to find even numbers between 1 to 50. (5) | |
| b) Describe the following (any two): i) Variable and Constant ii) Data Types iii) Basic structure an execution of C Program |
|
| Q4. a) What is an Array? Briefly describe types of the Array. Explain the memory diagram of the array. (5) | |
| b) Write a program in C to print Fibbonacci Series up to n numbers. (5) | |
| OR | |
| Q5. a) What is Function in C? Explain the library and user defined functions in C. (5) | |
| b) What is call by Value and Call by reference? Write a C program to show working of Recursion. (5) | |
| Q6. a) Write Short note on Pointers. Write a C program to Swap two values using Pointer. (5) | |
| b) What is Array of Structure? Write a C Program to calculate Gross Salary of employees of an organization. (Minimum 5 Employees) (5) | |
| OR | |
| Q7. a) Write a Program in C which accepts Pointer as function arguments. (5) | |
| b) Define file and explain about the types of files, with examples. Explain different modes of opening files with syntax and example. (5) | |
| Q8. Write short description and function used in the following header files (any two): (2×5=10) | |
| a) stdio.h b) math.h c) string.h | |
| OR | |
| Q9. a)Write an algorithm for binary search. (5) |
|
| b) Write an algorithm to find the square root of an inputted number. (5) | |