BIT 1st Semester
C Programming Board Question Paper 2080

Views: ...

BIT 102-2080 ✡
Tribhuvan University
Institute of Science and Technology
2080
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 array? How array can be passed as function argument? Write a program to arrange an array having 10 integer numbers in ascending order using function.

2.

Explain different control structures in C. Write a program in C to perform different arithmetic operations on two integers and display the result based on choice made by user using switch statement.

3.

Differentiate between structure and union? Write a program to read employ id, name, post and salary of 20 employees and display detail of those employee whose post is "clerk".

Section B

Attempt any Eight questions

[8x5=40]
4.

What is recursion? Write a program to find the factorial of a given integer using recursion.

5.

What are conversion specifiers? Explain the basic structure of a C program.

6.

Explain nested if else ladder with suitable example.

7.

Explain structure of for loop. Write a program to reverse a number entered by user.

8.

What is DMA? Write a program to read N numbers and find largest and smallest number using DMA.

9.

Why data file is needed? Write a program to write N numbers in file "number.txt" and then read it and display only even numbers.

10.

List out different operators in C. Explain Logical and relational operator.

11.

What is pointer? Explain the similarity between array and pointer in brief.

12.

Write short notes on:
a) Macro
b) Opening and closing file