2082 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. What are different file opening modes? Write a program to write roll, name, and marks of student in file "student.txt"
3. List the phases of program development life cycle. Differentiate between coupling and cohesion.
4. What is a recursive function? Write a C program to find the factorial of an integer N using recursive function.
5. Explain if else if statement with syntax and semantic. Write a program to check whether a number is negative or positive or not.
6. What is DMA? Write a program to find the largest and smallest among N numbers using DMA.
7. List the operator in C on the basis of utility. Explain assignment and logical operator.
8. How can you initialize the graphics in C? Write a C program to generate nested circle with RED color using graphics functions.
Group C
9. What is two-dimensional array? How it can be declared? Explain. Write a program to add two mtimesnm \\times nmtimesn matrixes and find their sum.
10. What does structure different than union? Write a C program to enter id, name, and post and salary of 25 employees into structure variable called emp and display the records of employee having salary greater than 20000.
11. What is loop? Explain different types of loops with their syntax. Write a program to find sum of natural numbers from 1 to 100.