Tribhuvan University
Bachelor of Science in Computer Science and Information Technology
Semester 1 · TU Board 2078
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
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.10
Explain any three string functions. Write a program to check if two matrices are identical or act.
- 3.10
Define structure. Explain nested structure with example. Create a structure named book with name, author, and publisheras its members. Write a program using this structure to read data of 50 books and display name of those books published by "XYX" publisher.
Group B
(8 × 5 = 40)
- 4.5
Discuss structure of a C Program with suitable example.
- 5.5
What is variable? How is it different from constant? How do you write comments in c?
- 6.5
Explain formatted I/O functions in detail.
- 7.5
Write a program using your own function to find sum of two numbers
Answer comingAlso asked in 2077
- 8.5
Write a program to print largest among three numbers entered by the user.
- 9.5
Explain dynamic memory allocation with example
Answer comingAlso asked in 2080, 2075
- 10.5
Write a program that simply reads data from a file
- 11.5
Write a program to draw a line using graphics function.
Answer comingAlso asked in 2077, 2074
- 12.5
Write short notes on:
- History of C
- Bitwise Operator
— The End —