Bsc Csit Nepal

2069

C Programming

Full Marks: 60
Pass Marks: 24
Time: 3 hours

Attempt all questions:

  1. Write an algorithm and flowchart to find out whether a given integer is zero, +ve or –ve and explain it.

  2. What are the basic four data types used in C programming? What are its size and range? Explain.

  3. Explain the “if…else” statement with example.

  4. Differentiate between break and exit statement with example.

  5. Explain the multidimensional array with example. Write a program to convert a lowercase character string into uppercase.

  6. Explain the library functions with example.

  7. Write a program to find the sum of all the elements of an array using pointers.

  8. Explain the pointer arithmetic with example.

  9. Explain the array of structures and write a program to accept record of 15 person which has name, age and address and also display them.

  10. What are the three types of input/output functions which support in C- programming? Explain with example.

    OR

    Write short notes on:

    • a. Delimiters
    • b. Graphics function