C Programming 2021

Tribhuwan University
Faculty of Humanities and Social Sciences
OFFICE OF THE DEAN
2021
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

Attempt any six questions.[6*5=30]

2. Write a C program to generate the following output using loop.[5]
                                 1 0 1 0 1
                                    0 1 0 1
                                       1 0 1
                                          0 1
                                             1

5 marks view

3 How will you define pointer? Write a program that illustrate how pointer variable change the value of normal variable.[2+3]

5 marks view

4. Write a C program to calculate sum of the natural number up to N number using recursive function.[5]

4 marks view

5. Write a C program to to calculate following expressions: .

5 marks view

6. Write a C program to copy the contents of a student.txt file into another file called info.txt.[5]

5 marks view

7. Why do you use DMA instead of array? Explain DMA with suitable example.[2+3]

5 marks view

8. Write a C program to generate following output using graphics functions.                                               

5 marks view

Group C

Attempt any TWO questions.[2*10=20]

9. Write a C program to store the player name, runs scored, wickets taken of 20 cricketers using structure along with pointer then arrange in order of maximum wickets to minimum wickets they had taken.

10 marks view

10. Write a C program to generate following series using function:
 

10 marks view

11. Define SDLC. Explain software process models.[2+8]

10 marks view