Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Tribhuvan University

Faculty of Humanities and Social Sciences


OFFICE OF THE DEAN
2023
Bachelor in Computer Applications Full Marks: 60
Course Title: C-Programming Pass Marks: 24
Code No: CACS 151 Time: 3 hour
Semester: II
Candidates are required to answer the questions in their own words as far as possible.
Group B
Attempt any six questions [ 6 x 5=30]

1. What is software process model? Difference between cohesion and coupling in programming?
2. Define keywords and identifiers. Define rules for defining valid identifier.
3. List the operators used in C on the basis of utility. Explain the concept of bitwise operation.
4. Why an array is required in programming? Write a C program to input age of 30 employees into
array and find out second largest age from array.
5. Write a program in C to find all possible roots of quadratic equation ax 2 + bx + c =0.
6. What is DMA? Write a program to find the largest and smallest number in a list of n numbers
using DMA.
7. What is the difference between binary files and text file? Write a C program to write some
text. .txt "welcome to BCA program" in a file test.txt.
8. What is the use of initgraph() in C program? Write a program to draw line and circle and
rectangle using graphic function.

Group C

Attempt any two. [ 2 x 10 = 20]

1. 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.
2. Define structure and union. Write a C program using structure that reads the records of 35
students with student's roll, name, address and makes display the records of students who have
obtained greater than 250 marks.
3. What is function? List its advantages. Explain the concept of function call by value and call by
reference with examples.

You might also like