BCA 2nd Semester
C Programming Board Question Paper 2022

Views: ...
tribhuvan university logo

Tribhuvan university

Bachelor In Computer Application

Course Title: C Programming

Code No: CACS 151

Semester:II

2022

Full Marks:60 Pass Marks:24 Time: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.
[6x5=30]
2.

Write a C program to generate the following output using loop.
10101
0101
101
01
1

3.

How will you define pointer? Write a program that illustrate how pointer variable change the value of normal variable.

4.

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

5.

Write a C program to calculate following expression: 5x √y² + 5.

6.

Write a C program to copy contents of student.txt file into another file called info.txt.

7.

Why do you use DMA instead of array? Explain DMA with suitable example.

8.

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

BCA

Group C

Attempt any TWO questions

[2x10=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 the players in order of maximum wickets to minimum wickets they had taken.

10.

Write a C program to generate following series using function:
Sum = 1 + x/2! + /3! + /4! + ... + xⁿ/n!

11.

Define SDLC. Explain software process models.