END TERM EXAMINATION (C-Language) | |
First Semester[BCA] | Jan 2024 |
Paper Code: BCA-103 | Subject : Programing Using C Language |
Time:3 Hour | Maximum Marks:60 |
Note: Attempt five questions in all including Q.No.1 which is compulsory. Select one question from each unit. | |
Q1 Write short note on the following: (2*10=20) | |
(a) What are the shorthand assignment operators? | |
(b) What is #define and write its syntax? | |
(c) Differentiate between call by value and call by reference. | |
(d) Name the language necessarily need heap allocation in the run time environment and why? | |
(e) Define static storage class. | |
(f) What is typecasting? | |
(g) What is self referential structure? | |
(h) Name functions of standard library process.h? | |
(i) Write usage of command line arguments. | |
(j) Define memory allocation for structure and array. | |
UNIT I | |
Q2 (a) Write a C Program to check Least Significant Bit (LSB) of a number is set or not. (5) | |
b) Explain nested control structure with an example. (5) | |
Q3 (a) Explain labelled continue statement with flow diagram. (5) | |
(b) Write a program to check whether the number is even or not and print using the goto statement. (5) | |
UNIT-II | |
Q4 (a) Write a C Program to calculate sum of array elements using pointers (5) | |
b) Explain the pointer for inter function communication. (5) | |
Q5 (a) Write a program to find out the maximum number in array using pointer. (5) | |
(b) What are callback functions and how functions can be passed to another function as an argument. (5) | |
UNIT-III | |
Q.6 (a) Write a C program to access members of a structure using pointers. (5) | |
(b) Why do we need File Handling? Write types of files and functions in file operations. (5) | |
Q7 (a) Write a C program using passing structure by reference. (5) | |
(b) Explain file positioning functions. (5) | |
UNIT IV | |
Q8 (a) Write a C program to calculate the sine of an argument. (5) | |
(b) Explain string library functions with suitable example. (5) | |
Q9 (a) Write a program in C that write 10 integers in data.txt file and copy into the duplicate.txt file. (5) | |
(b) Define virtual functions. Explain wide char and library functions. (5) |