Paper Code: 13506
1506
B.Sc. (Computer Science) (Part 1)
Examination, 2023
Paper No. 2.3
BASIC PROGRAMMING CONCEPTS USING C
Time: Three Hours] [Maximum Marks: 34
Note: Attempt five questions in all selecting at least one question from each Section. Question10 is compulsory
Section-A7
1. (a) Explain in detail about operators in C Language.
(b) Explain about enumerated data types with example.
2. (a) Explain type conversion and operator precedence with example.
(b) Write a C program to print the Fibonacci series from 1 to N.
Section-B7
3. (a) Explain Branching and looping statement in C.
(b) What is recursion a write a recursion program to find factorial of a number.
4. (a) Write a C program using switch statement to print the day of week.
(b) Write a C program to read a 5 digit integer and print its sum of digits.
Section-C7
5. (a) What is array? Write a program to sort the elements of a given array.
(b) What is string? Write a program to sort the names in ascending order.
6. (a) Explain user and library functions with example.
(b)What functions are used for dynamic memory allocation in C Language.
Section-D7
7. What is structure? Explain C syntax of structure declaration with example.
8. What in union? Explain the difference between union and structure with example.
Section-E6
9. What is Binary and sequential file? Explain with example.
10. Write short notes on any two of the following :
(i) Pointers to pointers
(ii) Self Referential structure
(iii) Array of structure
………End………
Leave a Comment