C Programming 2018

Tribhuwan University
Faculty of Humanities and Social Sciences
OFFICE OF THE DEAN
2018
Bachelor of Computer Applications
Course Title: C Programming
Code No: CACS151
Semester: Second Semester
Full Marks: 60
Pass Marks: 24
Time: 3 hours
Candidates are required to answers the questions in their own words as far as possible.

Group B

Attempt any SIX questions. [6x5 = 30]

11. What is software process model? Differentiate between cohesion and coupling in programming. [1+4]

5 marks view

12. Define keyword and identifiers. Explain rules for defining valid identifiers. [2+3]

5 marks view

13. List the operators used in C on the basis of utility. Explain the concept of bitwise operator. [2+3]

5 marks view

14. Differentiate between while loop and do while loop. Write a C program to find input number is prime or composite. [2+3]

5 marks view

15. What is DMA? Write a program to find the largest and smallest number in a list of N number using DMA. 1+4]

5 marks view

16. What is difference between binary file and text file? Write a C program to write some text "Welcome to BCA program" in a file test.text. [2+3]

5 marks view

17. Explain any four graphics functions in C. Write a program to draw two concentric circles with center (50, 50) and radii 75 and 125. [2+3]

5 marks view

Group-C

Attempt any two questions [2x10=20]

18. What is one dimensional array? How it is initialized? Write a C program to find the sum of two matrix of order m×n. [1+1+8]

10 marks view

19. Define structure and union? Write a C program using structure that reads the records of 35 students with members roll, name, address and makes and display the record of students who have obtained greater than 250 marks. [2+8]

10 marks view

20. What is function? List its advantages. Explain the concept of function call by value

and function call by reference with example. [1+2+7]

10 marks view