C Programming — CACS151 (2nd Sem)
Tribhuvan University BCA · 2nd Semester · CACS151 · 2021
Extracted text (for search)
Plain text pulled from the file — layout, tables and diagrams don't survive extraction. For the real thing, use the viewer above.
_ Tribhuvan University
wee ak - Faculty of Humanities & Social Sciences
ys cs x a OFFICE OF THE DEAN
wey 2021
Bachelor in Computer Applications Full Marks: 60
Course Title: C Programming Pass Marks: 24
Code No: CACS151 __Time:3hours
____Semester: [I _ — SRE <
Candidates are required to answer the questions in their own words as far as possible.
Group B
Attempt any SIX questions. [6x5 = 30]
2. Write a Cprogram to generate the following output using loop. [S]
10101
0101
108] ;
0 1
]
3. How will you define pointer? Write a program that illustrate how pointer variable change the value
of normal variable. [2+3]
A< 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 y2+5 [5]
6. Write a C program to copy contents of student.txt file into another file called info.txt. [5]
*~ Why do you use DMA instead of array? Explain DMA with suitable example. [2+3]
Re Write a C program to generate following output using graphics functions. [5]
Group C
Attempt any TWO questions. [2x10 = 20]
Pee a C program to store the player name, runs scored, wickets taken of 20 cricketers using
structure along with pointer then arran ge the players in order of maximum wickets to minimum
_____ Wickets they had taken.
10. Write a C program to generate following series using function: “a
2 3 n
Sum = Pee ee oe
le 22!s 3! n!
Ax Define SDLC. Explain software process models.
[2+8]
comments