CACS151 C Programming

C Programming TU Board 2021 question paper

10 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Computer Application

Semester 2 · TU Board 2021

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 B

Attempt any SIX question.(6 × 5 = 30)

  1. 2.

    What are keywords? Explain the compiling process of C program.

    5
  2. 3.

    Differentiate between iteration and recursion.

    5
  3. 4.

    Define an array? Write a program to generate the following output using loop. 1 12 123 1234 12345

    5
  4. 5.

    Define operator. Explain any four types of operators available in C?

    5
  5. 6.

    Why function is required in C programming? Write a program to find smallest number from the array using function.

    5
  6. 7.

    Why DMA is used in C language? Write a program to enter age of 20 students and count age between 18 and 25 from the array using DMA functions.

    5
  7. 8.

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

    5

Group C

Attempt any TWO questions(2 × 10 = 20)

  1. 9.

    What is union? Write a C program to enter bid, title, price, pages of 100 book into structure variable called book and sort them in descending order on the basis of their title with use of pointer.

    10
  2. 10.

    What is the use of data file in C? Write a program to accept 100 numbers from user and store them in odd.txt file (if number is odd) or even.txt (If number is even) then display odd numbers reading from odd.txt file.

    10
  3. 11.

    What do you mean by System design tools? Explain any four design tools with suitable examples.

    10

— The End —