BIT 1st Semester

C Programming Board Question Paper 2083

Views: …

BIT 102-2083

Tribhuvan University

Institute of Science and Technology

2083
TUpapers.com
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 far as practicable.
The figures in the margin indicate full marks.

Section A

Long Answer Questions
Attempt any Two questions.

[2x10=20]
1.
What is structure? Why do we need it? Write a program to add two distances given in meter and centimeter format using structure.
2.
How do you declare and initialize pointer? Write a program to find first and second largest element from an array using pointer.
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.

Section B

Attempt any Eight questions

[8x5=40]
4.
Write a program to copy the content of one file to another in a reverse manner.
5.
Discuss about compiling, assembling, loading and linking.
6.
Write a program to find the length of a string without using built in function.
7.
Write a program to find the sum of diagonal elements only in the given matrix.
8.
Generate the following pattern using loop.
BITTU
BITT
BIT
BI
B
9.
Demonstrate the concept of switch statement with an example.
10.
Discuss about bitwise and size of operator.
11.
What is type conversion? What are conversion specifiers?
12.
Draw a flowchart to find whether the given character is vowel or not.