Tribhuvan University

Institute of Science and Technology


Bachelor Level / first-semester / Science

Computer Science and Information Technology( CSC110 )

C Programming

Full Marks: 60 + 20 + 20

Pass Marks: 24 + 8 + 8

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

Attempts any two questions:


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.


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


Define structure. Explain nested structure with example. Create a structure named book with nameauthor, 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 “XYX” publisher.

Section B

Attempts any eight questions:


Discuss structure of a C Program with suitable example.


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


Explain formatted I/O functions in detail.


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


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


Explain dynamic memory allocation with example


Write a program that simply reads data from a file


Write a program to draw a line using graphics function.


Write short notes on:

  1. History of C
  2. Bitwise Operator
You are not allowed to copy content or view source!!!