BIT102 C Programming

C Programming old question papers

Pick a year on the left to see the full paper, exactly as it was set. 7 questions have come up in more than one paper.

12 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Information Technology

Semester 1 · TU Board 2083

Course Title: C Programming (BIT102)

Full Marks: 60Pass Marks: 24Time: 3 hours

Candidates are required to give their answers in their own words as far as practicable.

Group A

Attempt any Two questions.(2 × 10 = 20)

  1. 1.

    What is structure? Why do we need it? Write a program to add two distances given in meter and centimeter format using structure.

    10
  2. 2.

    How do you declare and initialize pointer? Write a program to find first and second largest element from an array using pointer.

    10
  3. 3.

    Why do we need external function? Distinguish between local and global variables. Write a function to find the average of five given integers using function.

    10

Group B

Attempt any Eight questions(8 × 5 = 40)

  1. 4.

    Write a program to copy the content of one file to another in a reverse manner.

    5
  2. 5.

    Discuss about compiling, assembling, loading and linking.

    5
  3. 6.

    Write a program to find the length of a string without using built in function.

    5
  4. 7.

    Write a program to find the sum of diagonal elements only in the given matrix.

    5
  5. 8.

    Generate the following pattern using loop. BITTU BITT BIT BI B

    5
  6. 9.

    Demonstrate the concept of switch statement with an example.

    5
  7. 10.

    Discuss about bitwise and size of operator.

    5
  8. 11.

    What is type conversion? What are conversion specifiers?

    5
  9. 12.

    Draw a flowchart to find whether the given character is vowel or not.

    5

— The End —