CSC115 · TU past paper
C Programming 2078 question paper
The complete TU 2078 exam paper for C Programming (CSC115), all 12 questions with solved model answers written to the mark scheme.
Tap a question to open its answer.
- Q1.10 marksBreak and ContinueHideAnswer
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.[1+5+4]
- Q2.10 marksString Library FunctionsHideAnswer
Explain any three string functions.Write a program to check if two matrices are identical or not.[3+7]
- Q3.10 marksStructure within structureHideAnswer
Define structure.Explain nested structure with example.Create a structure named book with name, author, 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 'XXX' publisher.[1+2+2+5]
- Q4.5 marksStructure of a C programHideAnswer
Explain structure of a C program with suitable example. [5]
- Q5.5 marksVariablesHideAnswer
What is variable? How is it different from constant? How do you write comments in C? [1+2+2]
- Q6.5 marksFormatted I/OHideAnswer
Explain formatted I/O functions in detail. [5]
- Q7.5 marksUser defined functionsHideAnswer
Write a program using your own function to find sum of two numbers. [5]
- Q8.5 marksDecision Making and BranchingHideAnswer
Write a program to print largest among three number entered by the user. [5]
- Q9.5 marksDynamic Memory AllocationHideAnswer
Explain dynamic memory allocation with example. [5]
- Q10.5 marksInput Output Operations in FileHideAnswer
Write a program that simply reads data from a file. [5]
- Q11.5 marksGraphics FunctionHideAnswer
Write a program to draw a line using graphics function. [5]
- Q12.5 marksHistory of CHideAnswer
Write short notes on: History of C, Bitwise operator. [5]