2025 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 program to reverse a given number
3. Write a C program to calculate following expression: 5xsqrty2+55x \\sqrt{y^2 + 5}5xsqrty2+5
4. Write program to generate the following output using loop: 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1
5. Write a C program that will read a given value of X and obtain the value of Y using if statement:
y = \\begin{cases} x^2 + 5 & \\text{if } x > 0 \\ 5 & \\text{if } x = 0 \\ -(x^2 + 5) & \\text{if } x < 0 \\end{cases}
6. Write a program to list prime number from 1 to 1000
7. Explain any five operators available in C programming
8. What is the use of printf() and scanf() functions explain with format specifier
Group C
9. Write a program to calculate basic arithmetic operations using switch case statement
10. Write a program to calculate sum of following series: Sum=1+fracx1!+fracx22!+fracx33!+.........+fracxnn!Sum = 1 + \\frac{x}{1!} + \\frac{x^2}{2!} + \\frac{x^3}{3!} + ......... + \\frac{x^n}{n!}Sum=1+fracx1!+fracx22!+fracx33!+.........+fracxnn!
11. Develop a program that accepts an input of 'N' elements in a 1-dimensional array, searches for a specific element in the array provided by the user, and determines the number of repetitions and counts the number of searched elements in the array