Fundamentals of Computer Programming 2069

Tribhuwan University
Institute of Science and Technology
2069
Bachelor Level / First Semester / Science
Computer Science and Information Technology ( CSC-102 )
( Fundamentals of Computer Programming )
Full Marks: 60
Pass Marks: 24
Time: 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.

Attempt all questions

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

6 marks view

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

6 marks view

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

6 marks view

4) Differentiate between break and exit statement with example.

6 marks view

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

6 marks view

6) Explain the library functions with example.

6 marks view

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

6 marks view

8) Explain the pointer arithmetic with example.

6 marks view

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.

6 marks view

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

6 marks view