Tribhuvan University
Institute of Science and Technology
2078 B.S.
Candidates are required to give their answers in their own words as far as practicable.
Group A
Long Answer QuestionsAttempt any Two questions.
- Question 1What 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.
- Question 2Explain any three string functions. Write a program to check if two matrices are identical or act.
- Question 3Define 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 “XYX” publisher.
Group B
Short Answer QuestionsAttempt any Eight questions.
- Question 4Discuss structure of a C Program with suitable example.
- Question 5What is variable? How is it different from constant? How do you write comments in c?
- Question 6Explain formatted I/O functions in detail.
- Question 7Write a program using your own function to find sum of two numbers
- Question 8Write a program to print largest among three numbers entered by the user.
- Question 9Explain dynamic memory allocation with example
- Question 10Write a program that simply reads data from a file
- Question 11Write a program to draw a line using graphics function.
- Question 12Write short notes on: a. History of C b. Bitwise Operator