CSIT 1st Semester
C Programming Board Question Paper 2080 Old Course


CSC 115-2080 ✡
Tribhuvan University
Institute of Science and Technology
2080
Bachelor Level/First Year/First Semester/Science
Computer Science Information Technology (CSC 115)
(C Programming)
(Old Course)
Full Marks:60 Pass Marks:24 Time:3 hours

Candidates are required to give their answers in their own words as for as practicable.
The figures in the margin indicate full marks

Section A
Long Answer Questions
Attempt any Two question.
[2x10=20]
1.

Why do we need multidimensional array? How array is passed in function? Write a program to sort the given array in descending order.

2.

Describe the features of structured programming. Write a program to create a structure named "Movie" with data member movie_name, genre and released_year. Create a function to take input of 10 movies and print those movies which are released in 2020 in different function.

3.

Differentiate between printf() and fprint(). Write a program to check whether the entered number is prime or not.

Section B

Attempt any Eight questions

[8x5=40]
4.

What are the basic data types associated with C? Explain.

5.

Write a program to reverse the given integer using recursion.

6.

Illustrate the use of switch statement with example.

7.

Write a program to find the transpose of a matrix.

8.

List any two graphics functions with example.

9.

Write a program to find the sum of elements in the array.

10.

Define dynamic memory allocation. Describe about chain of pointers.

11.

Write a program to generate the multiplication table of given integer.

12.

Why do we need control statement? Describe with suitable example.