TRIBHUVAN UNIVERSITY
INSTITUTE OF SCIENCE AND TECHNOLOGY
2081 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.
- 1List different types of operators and explain any four of them. (2+8)
- 2What are the characteristics of array? Write a program to input age of 500 persons and display Average age and Age between 25 to 30. (2+8)
- 3Differentiate between library function and user defined function. Write a program to swap two values using call by reference concept. (2+8)
Group B
Short Answer QuestionsAttempt any Eight questions.
- 4Explain the basic structure of C Programming. (5)
- 5Describe different formatted input and output functions. Why do we use them? (4+1)
- 6Write a program to display first 50 prime numbers. (5)
- 7Write a program to display the series $2 \times 3, 3 \times 5, 4 \times 7, 5 \times 9 \dots$ up to 25 terms but do not print the 7th term. (5)
- 8Demonstrate the use of recursive function with a suitable example. (5)
- 9Create structure STUDENT (SID, name, address, CGPA). Display students from 'KTM' with CGPA between 3.5 to 4. (5)
- 10Explain different file opening modes. (5)
- 11Write a program to draw two shapes of your choice using graphics function. (5)
- 12Write short notes on: a) Global variable b) Debugging (2x2.5=5)