CACS151 C Programming

C Programming TU Board 2022 question paper

10 questionsSit this paper (timed)

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)

    1. 2.

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

      5
    2. 3.

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

      5
    3. 4.

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

      5
    4. 5.

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

      5
    5. 6.

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

      5
    6. 7.

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

      5
    7. 8.

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

      5

    Group C

    Attempt any TWO questions(2 × 10 = 20)

    1. 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
    2. 10.

      Write a C program to generate following series using function: Sum = 1 + ^x/_2! + ^x²/_3! + ^x³/_4! + ... + ^xⁿ/_n!

      10
    3. 11.

      Define SDLC. Explain software process models.

      10

    — The End —