CSIT 1st Semester
C Programming Board Question Paper 2078


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

What do you mean by jump statement? Explain each jump statement with example. Write a program to check whether a number entered is prime or not.

2.

Explain any three string functions. Write a program to check if two matrices are identical or not.

3.

Define structure. Explain nested structure with example. Create a structure named book with name, author, and publisher as its members. Write a program using this structure to read data of 50 books and display name of those books published by "XYZ" publisher.

Section B

Attempt any Eight questions

[8x5=40]
4.

Explain structure of a C program with suitable example.

5.

What is variable? How is it different from constant? How do you write comments in C?

6.

Explain formated I/O functions in detail.

7.

Write a program using your own function to find sum of two numbers.

8.

Write a program to print largest among three numbers entered by the user.

9.

Explain dynamic memory allocation with example.

10.

Write a program that simply reads data from a file.

11.

Write a program to draw a line using graphics function.

12.

Write short notes on:
a. History of C
b. Bitwise operator