CSC115 C Programming

C Programming TU Board 2078 question paper

12 questionsSit this paper (timed)

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. 1.

    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.

    10
  2. 2.

    Explain any three string functions. Write a program to check if two matrices are identical or act.

    10
  3. 3.

    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.

    10

Group B

(8 × 5 = 40)

  1. 4.

    Discuss structure of a C Program with suitable example.

    5
  2. 5.

    What is variable? How is it different from constant? How do you write comments in c?

    5
  3. 6.

    Explain formatted I/O functions in detail.

    5
  4. 7.

    Write a program using your own function to find sum of two numbers

    5
  5. 8.

    Write a program to print largest among three numbers entered by the user.

    5
  6. 9.

    Explain dynamic memory allocation with example

    5
  7. 10.

    Write a program that simply reads data from a file

    5
  8. 11.

    Write a program to draw a line using graphics function.

    5
  9. 12.

    Write short notes on:

    1. History of C
    2. Bitwise Operator
    5

— The End —