Tribhuvan University
Bachelor of Science in Computer Science and Information Technology
Semester 1 · TU Board 2074
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
(2 × 10 = 20)
- 1.10
Discuss structure of a C Program with suitable example.
- 2.10
Discuss different types of if statements with example of each. Differentiate if statement with switch statement.
Answer comingAlso asked in 2075
- 3.10
What is structure? How is it different from array? Create a structure student having data members name, roll-number and percentage. Complete the program to display the name of student having percentage greater than or equal to 60.
Group B
(8 × 5 = 40)
- 4.5
What is algorithm? How is it different from flow chart?
- 5.5
What is type conversion? Discuss type casting with suitable example.
- 6.5
Discuss increment and decrement operators with example.
- 7.5
Write a program that computes the sum of digits of a given integer number
Answer comingAlso asked in 2079
- 8.5
What is function? Discuss the benefits of using function.
- 9.5
Write a program to find sum and average of 10 integer numbers stored in an array.
- 10.5
Define pointer. Discuss the relationship between pointer and one-dimensional array
- 11.5
Write a program to read and print data stored in a file input.txt.
- 12.5
Why do we need graphics functions? Write a program to draw a circle.
Answer comingAlso asked in 2078, 2077
— The End —