C Programming 2021

Question Paper Details
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

Official Answer
AI Generated Answer

AI is thinking...

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

Official Answer
AI Generated Answer

AI is thinking...

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
Details
Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

Group C

Official Answer
AI Generated Answer

AI is thinking...

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

Official Answer
AI Generated Answer

AI is thinking...

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
Details
Official Answer
AI Generated Answer

AI is thinking...

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

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...