IT232 C Programming

C Programming old question papers

Pick a year on the left to see the full paper, exactly as it was set.

22 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Information Technology Management

Semester 1 · TU Board 2023

Course Title: C Programming (IT232)

Full Marks: 60Pass Marks: 30Time: 3 Hrs

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

Group A

Brief Answer Questions(10 × 1 = 10)

  1. 1.

    Define object code.

    1
  2. 2.

    Write the rule to define a variable.

    1
  3. 3.

    Is printf() formatted or unformatted I/O? Justify.

    1
  4. 4.

    What do you mean by implicit type conversion?

    1
  5. 5.

    Why do we need exit function?

    1
  6. 6.

    Define Null character.

    1
  7. 7.

    How does complier determine the life time of a variable?

    1
  8. 8.

    List any one advantage and disadvantage of pointer.

    1
  9. 9.

    When do we prefer union rather than structure? Give an example.

    1
  10. 10.

    What is the difference between append mode and write mode in file handling?

    1

Group B

Short Answer Questions: (Attempt any FIVE Questions)(5 × 3 = 15)

  1. 11.

    Draw a flowchart to find the smallest among three given integer.

    3
  2. 12.

    What are the different data types in C programming and how are they used?

    3
  3. 13.

    Describe the significance of escape sequence and delimiter with example.

    3
  4. 14.

    How pointer is used in arithmetic operation? Illustrate with an example.

    3
  5. 15.

    Create a structure "mobile" with data member model and price and display the model of mobile having price more than Rs 10,000.

    3
  6. 16.

    Write a program to copy the contain of one file to another file.

    3

Group C

Long Answer Questions: (Attempt any THREE Questions)(3 × 5 = 15)

  1. 17.

    Write a program to find the sum of digits of given integer using recursion. (eg: input = 123, output = 1+2+3=6)

    5
  2. 18.

    How do you draw a rectangle in Graphics in C? Write the codes.

    5
  3. 19.

    Describe any four storage classes in C with example.

    5
  4. 20.

    Display the following pattern using loop. BIMMIB IMMI MM

    5

Group D

Comprehensive Answer / Case / Situation Analysis Questions(2 × 10 = 20)

  1. 21.

    Discuss some commonly used string library functions in C programming. Provide examples of each function.

    10
  2. 22.

    Compare and contrast passing arguments by value and passing arguments by address in C programming. Provide examples.

    10

— The End —