Tribhuvan University
Bachelor of Computer Application
Semester 2 · TU Board 2024
Course Title: C Programming (CACS151)
Full Marks: 60Pass Marks: 24Time: 3 hours
Candidates are required to answer the question in their own words as far as possible.
Group A
Group B
Attempt any SIX question.(6 × 5 = 30)
- 2.5
Define software process model. Explain software development life cycle.
- 3.5
Explain call by value and call by reference with suitable example.
Answer comingAlso asked in 2019
- 4.5
What is dynamic memory allocation? What are the limitations of static memory allocation? Explain malloc( ) and calloc( ) function with example.
- 5.5
What is recursion? Write a program to display Fibonacci series up to 15th term using recursion.
- 6.5
Explain null pointer and void pointer with suitable example.
- 7.5
Write a program to draw a circle and rectangle with output text "BCA Exam 2081" using graphics function.
- 8.5
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
Attempt any TWO questions(2 × 10 = 20)
- 9.10
Define cohesion and coupling. What do you mean by keywords, operators and header files? Describe the types of operator used in C programming.
- 10.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.10
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.
— The End —