Tribhuvan University
Institute of Science and Technology
2081
Bachelor Level / first-semester / Science
Computer Science and Information Technology( CSC115 )
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
Answer any TWO questions.
List different types of operators and explain any four of them.
What are the characteristics of array? Write a program to input age of 500 persons and display the following
Differentiate between library function and user defined function. Write a program to swap two values using call by refrence concept.
SECTION B
Answer any EIGHT questions.
Explain the basic structure of C Programming.
Describe different formatted input and output functions. Why do we use them?
Write a program to display first 50 prime numbers.
Write a program to display the following series up to 25 terms but do not print the 7th term. 2 x 3, 3 x 5, 4 x 7, 5 x 9…
Demonstrate the use of recursive function with a suitable example.
Create a structure called STUDENT with data members SID, name, address, CGPA. Write a program to initialize the value of 100 students and display the information of those students whose address is “KTM” and CGPA is between 3.5 to 4. using C program
Explain different file opening modes.
Write a program to draw two shapes of your choice using graphics function.
Write short notes on: