Collection of C Programming board examination questions.
Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2024
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. Define software process model. Explain software development life cycle.
3. Explain call by value and call by reference with suitable example.
4. What is dynamic memory allocation? What are the limitations of static memory allocation? Explain malloc( ) and calloc( ) function with example.
5. What is recursion? Write a program to display Fibonacci series up to 15th term using recursion.
6. Explain null pointer and void pointer with suitable example.
7. Write a program to draw a circle and rectangle with output text "BCA Exam 2081" using graphics function.
8. What do you mean by conditional statement? Write a program to calculate sum and average of weight of five persons using an array.
Group C
9. Define cohesion and coupling. What do you mean by keywords, operators and header files? Describe the types of operator used in C programming.
10. Why do we need a break and continue statement? Differentiate between binary file and text file? Suppose a file named "Number.txt" contains a list of integers. Write a program to extract the prime numbers from that file and write them on "Prime.txt" file.
11. Differentiate between structure and union. Create a structure "Employee" having Name, Department, Address, Salary, and Age as member functions. Display the name of the employee having aged between 30 and 50 are living in Kathmandu.