Tribhuvan University
Bachelor of Computer Application
Semester 2 · TU Board 2020
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 computer programming? Differentiate between top down and bottom up approach of programming.
Answer comingAlso asked in 2023
- 3.5
What is the purpose of size of operator? Write a C program to swap the value of two integers without using third variable.
- 4.5
Write a program in C to find all possible roots of quadratic equation ax² + bx + c = 0.
- 5.5
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.
- 6.5
What is recursive function? Write C program to generate the Fibonacci series up to 13th term using recursive function.
- 7.5
What is the advantage of pointer? Write a C program to store 10 integers into memory and find out minimum and maximum using dynamic memory allocation (DMA).
- 8.5
What is the use of initgraph() in C program? Write a program to draw line and circle and rectangle using graphic function.
Answer comingAlso asked in 2024
Group C
Attempt any TWO questions(2 × 10 = 20)
- 9.10
What is structure? Write a C program to enter id, name and address of 25 structure variable called employee and sort them in ascending order on the basis with use of pointer.
- 10.10
Is break keyword mandatory in switch statement? Write a program to calculate arithmetic operations (+, -, *, /) using switch case statement.
- 11.10
What do you mean by Software Development Life Cycle? Explain waterfall modelw advantage and disadvantage.
— The End —