C Programming (CSC115) Past Questions & Solutions

Tribhuvan University (TU) board exam past questions with verified step-by-step solutions for BSc CSIT First Semester.

Core Course6 Exam Years

TRIBHUVAN UNIVERSITY

INSTITUTE OF SCIENCE AND TECHNOLOGY

2081 B.S.

Bachelor Level: B.Sc. CSIT

Semester: First Semester

Subject: C Programming (CSC115)

Full Marks: 60 / 80

Pass Marks: 24 / 32

Candidates are required to give their answers in their own words as far as practicable.

Group A

Long Answer Questions

Attempt any Two questions.

  1. 1
    List different types of operators and explain any four of them. (2+8)
  2. 2
    What 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)
  3. 3
    Differentiate 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 Questions

Attempt any Eight questions.

  1. 4
    Explain the basic structure of C Programming. (5)
  2. 5
    Describe different formatted input and output functions. Why do we use them? (4+1)
  3. 6
    Write a program to display first 50 prime numbers. (5)
  4. 7
    Write 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)
  5. 8
    Demonstrate the use of recursive function with a suitable example. (5)
  6. 9
    Create structure STUDENT (SID, name, address, CGPA). Display students from 'KTM' with CGPA between 3.5 to 4. (5)
  7. 10
    Explain different file opening modes. (5)
  8. 11
    Write a program to draw two shapes of your choice using graphics function. (5)
  9. 12
    Write short notes on: a) Global variable b) Debugging (2x2.5=5)