CSIT 1st Semester
C Programming Board Question Paper 2081 Old Course


CSC 115-2081 ✡
Tribhuvan University
Institute of Science and Technology
2081
Bachelor Level/First Year/First Semester/Science
Computer Science Information Technology (CSC 115)
(C Programming)
(Old Course)
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.

Explain different forms of if statements with example of each. Write a program to check whether a number entered is divisible by both 5 and 7.

2.

Define array. Why do we need array? Write a program to multiply two matrices.

3.

What is structure? How is it different from array? Create a structure named student with name, address, and age as its members. Write a program using this structure to read data of 10 students and display data of those students who live in "Kathmandu".

Section B

Attempt any Eight questions

[8x5=40]
4.

Explain algorithm with example. What are the benefits of using algorithms?

5.

What is identifier? Explain rules for valid identifiers with example. What is keyword?

6.

What do you mean by formatted I/O? Explain.

7.

Write a program to find sum of first n odd numbers.

8.

Write a program to find sum of two integers using your own function. Define Pointer. Write a program to illustrate passing pointers to function.

9.

10.

Explain different file opening modes.

11.

Write a program to draw an ellipse using graphics function.

12.

Write short notes on:
a) Problem analysis
b) Increment and decrement operator