BIT102 C Programming

C Programming TU Board 2078 question paper

11 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Information Technology

Semester 1 · TU Board 2078

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 an expression and operator? Discuss operator associativity in C. Write a program to find factorial of a given integer using recursion.

    10
  2. 2.

    What is an Identifier and Keyword? Explain the rules for naming valid Identifiers in C with example. Write a program to convert a given string to lowercase without using any library functions.

    10
  3. 3.

    What different data types available in C along with their respective range? Write a program to check whether a given integer is palindrome or not.

    10

Group B

Attempt any Eight questions(8 × 5 = 40)

  1. 4.

    What is the basic structure of a C program? Explain each part.

    5
  2. 5.

    How break statement is different from continue statement? Explain with suitable example.

    5
  3. 6.

    What do you mean by multi-dimensional array? Write a program to display the sum of two m x n matrices.

    5
  4. 7.

    Write a program to create a file "duplicate" that contains the exact copy of file "original".

    5
  5. 8.

    Explain any four input/output functions used in C language with suitable example.

    5
  6. 10.

    Write a program to find smallest element of an array using a pointer.

    5
  7. 11.

    Write a program to store and display basic information (Roll, name, address, email, and phone) of students of using a structure.

    5
  8. 12.

    Write Short Notes on: a. Escape Sequence b. Null Pointer

    5

— The End —