Tribhuvan University
Bachelor of Science in Computer Science and Information Technology
Semester 1 · TU Board 2081
Course Title: C Programming (CSC115)
Full Marks: 60Pass Marks: 24Time: 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.
Group A
Answer any TWO questions.(2 × 10 = 20)
- 1.10
List different types of operators and explain any four of them.
Answer comingAlso asked in 2080
- 2.10
What are the characteristics of array? Write a program to input age of 500 persons and display the following
- Average age
- Age between 25 to 30
- 3.10
Differentiate between library function and user defined function. Write a program to swap two values using call by refrence concept.
Group B
Answer any EIGHT questions.(8 × 5 = 40)
- 4.5
Explain the basic structure of C Programming.
- 5.5
Describe different formatted input and output functions. Why do we use them?
- 6.5
Write a program to display first 50 prime numbers.
Answer comingAlso asked in 2077
- 7.5
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…
- 8.5
Demonstrate the use of recursive function with a suitable example.
- 9.5
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
- 10.5
Explain different file opening modes.
- 11.5
Write a program to draw two shapes of your choice using graphics function.
- 12.5
Write short notes on:
- Global variable
- Debugging
— The End —