BCA 1st Semester
Programming in C Model Question 2026 - Tribhuvan University (TU) 2026

Views: ...
Tribhuvan University official logo

Tribhuvan University

Faculty of Humanities & Social Science
OFFICE OF THE DEAN
TUpapers.com TUpapers.com

Bachelor In Computer Application

Course Title: Programming in C

Code No: BCA 102

Semester: I

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

Candidates candidates must answer the question in their own words as far as possible.

Group B
Attempt any SIX question.
[6x5=30]
Section "A"

Group A (Very Short Questions) Attempt all questions.

[10 × 1 = 10]
1.

a. What are keywords and identifiers?
b. Define recursion.
c. What is call by value?
d. Write syntax for declaring an array.
e. What is a structure?
f. Define pointer.
g. What is dynamic memory allocation?
h. What is a file in C?
i. What is command-line argument?
j. Name any one graphics function in C.

Section "B"

Group B Attempt any SIX questions.

[6 × 5 = 30]
2.

Explain with example how a c program is compiled and executed.

3.

Differentiate between call by value and call by reference with suitable example.

4.

Write a program to print the following pattern using loop:

*
**
***
****

5.

Describe any 3 string handling functions in C with example.

6.

Explain structures in C. How are arrays of structures used?

7.

Explain how malloc(), calloc() and free() are used to allocate memory dynamically.

8.

Write a program to draw a circle at the center of the screen.

Section "C"

Group C Attempt any TWO questions.

[2 × 10 = 20]
9.

Write a C program to perform matrix multiplication using two-dimensional arrays. Explain how arrays and functions are used together in C.

10.

Explain nested structures with example. Design a structure for student records (name, roll, marks) and write a program to store and display data for 5 students.

11.

Write a program to create a file, write data, and read it back. Explain file handling functions used. Discuss random file access (fseek, ftell) with example.