CSIT 1st Semester
C Programming Board Question Paper 2075


CSC 115-2075 ✡
Tribhuvan University
Institute of Science and Technology
2075
Bachelor Level/First Year/First Semester/Science
Computer Science Information Technology (CSC 115)
(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 looping statement? Discuss different looping statements with suitable example of each.

2.

Define array? What are the benefits of using array? Write a program to add two matrices using array.

3.

Why do we need data files? What are the different file opening modes? Write a program that reads data from a file "input.txt" and writes to "output.txt" file.

Section B

Attempt any Eight questions

[8x5=40]
4.

Discuss different logical operations in details.

5.

What is break statement? Discuss with example. How the break statement is different from continue statement?

6.

Write a program to check whether a number entered is even or odd.

7.

Write a program to calculate sum of first 10 odd numbers.

8.

What is preprocessor directive? Discuss #define derivative with example.

9.

Discuss any five string library functions.

10.

What is dynamic memory allocation? Discuss the use of malloc () in dynamic memory allocation with example.

11.

What is structure? Create a structure rectangle with data members length and breath.

12.

Write short note on:
a) Benefits of data files
b) Graphics functions.