C Programming 2018

Question Paper Details
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

Official Answer
AI Generated Answer

AI is thinking...

Attempt any SIX questions. [6x5 = 30]

Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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
Details
Official Answer
AI Generated Answer

AI is thinking...

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
Details
Official Answer
AI Generated Answer

AI is thinking...

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
Details
Official Answer
AI Generated Answer

AI is thinking...

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
Details
Official Answer
AI Generated Answer

AI is thinking...

Group-C

Official Answer
AI Generated Answer

AI is thinking...

Attempt any two questions [2x10=20]

Official Answer
AI Generated Answer

AI is thinking...

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
Details
Official Answer
AI Generated Answer

AI is thinking...

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
Details
Official Answer
AI Generated Answer

AI is thinking...

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
Details
Official Answer
AI Generated Answer

AI is thinking...