Tribhuvan University
Bachelor of Computer Application
Semester 2 · TU Board 2019
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 B
Attempt any SIX question.(6 × 5 = 30)
- 2.5
What is software process model? Differentiate between cohesion and coupling in programming?
- 3.5
Define keywords and identifiers. Define rules for defining valid identifiers.
- 4.5
List the operators used in C on the basis of utility. Explain the concept of bitwise operation.
- 5.5
Differentiate between while loop and do while loop. Write a C program to find input number is prime or composite.
- 6.5
What is DMA? Write a program to find the largest and smallest number in a list of n numbers using DMA.
- 7.5
What is the difference between binary file and text file? Write a C program to write some text "Welcome to BCA program" in a file test.txt.
- 8.5
Explain any four graphics function in C. Write a program to draw two concentric circles with center (50, 50) and radius 75 and 125.
Group C
Attempt any TWO questions(2 × 10 = 20)
- 9.10
What is one dimensional array? How it is initialized? Write a C program to find the sum of two matrix of order m x n.
- 10.10
Define structure and union. Write a C program using structure that reads the record of 35 students with member's roll, name, address and makes and display the records of students who have obtained greater than 250 marks.
- 11.10
What is a function? List its advantages. Explain the concept of function call by value and call by reference with example.
— The End —