2026 Pre-Board examination question paper set for C Programming.

Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2026
Bachelor in Computer Applications

Paper detail Value
Course C Programming
Code No. CACS151
Semester IInd
Full marks 60
Pass marks 24
Time 3 hours

Candidates are required to answer the questions in their own words as far as possible.

Group B

2. Write a C program using structure to store and display student information of N students (roll, name, marks).

3. Write a C program to swap two numbers using pointers.

4. Write a C program to calculate the sum of array elements using a function.

5. Write a C program to access structure members using a pointer.

6. Write a program to find the largest and smallest element in an array.

7. Explain call by value and call by reference with suitable examples in C.

8. What is recursion? Write a C program to generate the Fibonacci series up to N numbers using recursion.

Group C

9. How do you declare a string to store your name in C? Explain any five string handling functions with examples.

10. How do you calculate the sum of odd numbers stored in an array using pointer arithmetic? Write a C program to demonstrate this.

11. Write a C program to store employee information (id, name, salary) in a file using structure. Then read the same information from the file and display it on the screen in an appropriate format using pointers.