BIT 1st Semester
C Programming Board Question Paper 2078

Views: ...

BIT 102-2078 ✡
Tribhuvan University
Institute of Science and Technology
2078
Bachelor Level/First Year/First Semester/Science
Bachelors in Information Technology (BIT 102)
(C Programming)
Full Marks:60 Pass Marks:24 Time:3 hours

Candidates are required to give their answers in their own words as for as practicable.
The figures in the margin indicate full marks

Section A
Long Answer Questions
Attempt any Two question.
[2x10=20]
1.

What is an expression and operator? Discuss operator associativity in C. Write a program to find factorial of a given integer using recursion.

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.

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.

Section B

Attempt any Eight questions

[8x5=40]
4.

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

5.

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

6.

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

7.

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

8.

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

9.

Write a program to generate the following pattern of integers.
1
121
12321
1234321

10.

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

11.

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

12.

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