Tribhuvan University
Bachelor of Computer Application
Semester 2 · TU Board 2022
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 A
Group B
Attempt any SIX question.(6 × 5 = 30)
- 2.5
Write a C program to generate the following output using loop. 10101 0101 101 01 1
Answer comingAlso asked in 2022, 2021
- 3.5
How will you define pointer? Write a program that illustrate how pointer variable change the value of normal variable.
- 4.5
Write a C program to calculate sum of the natural number up to N number using recursive function.
- 5.5
Write a C program to calculate following expression: 5x √y² + 5.
- 6.5
Write a C program to copy contents of student.txt file into another file called info.txt.
Answer comingAlso asked in 2024
- 7.5
Why do you use DMA instead of array? Explain DMA with suitable example.
- 8.5
Write a C program to generate following output using graphics functions.
Answer comingAlso asked in 2022, 2021
Group C
Attempt any TWO questions(2 × 10 = 20)
- 9.10
Write a C program to store the player name, runs scored, wickets taken of 20 cricketers using structure along with pointer then arrange the players in order of maximum wickets to minimum wickets they had taken.
- 10.10
Write a C program to generate following series using function: Sum = 1 + ^x/_2! + ^x²/_3! + ^x³/_4! + ... + ^xⁿ/_n!
- 11.10
Define SDLC. Explain software process models.
— The End —