BBA 1st Semester
C Programming Board Question Paper 2077

Views: ...

TRIBHUVAN UNIVERSITY
FACULTY OF MANAGEMENT
Office of the Dean
April 2024
Full Marks:100 Pass Marks:50 Time:3hrs
BBA/
First Semester/
FIN 202:
C Programming

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

Long Answer Questions
Section A

Brief Answer Questions

[3x2=6]
1.

Explain the role of function in programming. How function is declared, defined and called in C? Write a program to find factorial of 'n' using recursive function.

2.

What is an Identifier and keyword? Explain the rules for naming valid identifiers in C with example. Write a C program to find sum of digits of a 'n' digit number.

3.

How structure is different from union? Write a program to store and display basic information (roll, name, address, email, and phone) of students of using a structure.

4.

What is the basic structure of a C program? Explain each part.

5.

How break statement is different from continue statement. Explain with examples?

6.

What do you mean by multi-dimensional array? Write program logic to add and display the sum of two m x n matrices.

7.

Find errors (If any) in the following program and rewrite it.
#define (studio.h)
float main < >
int m [ ] [ ] = {{1,2,3,4}};
for (i = 4, I>=0 ; i--)
for (j=0, j <4; j++);
m [i] [j] = a[i][j] + b[i][j];
return 0. 0;
}

8.

Write a program to generate the following pattern of Integers.
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

9.

Write a C program to check whether a given string is palindrome or not.

10.

What is pointer? Illustrate the use of a double pointer with suitable example.

Section B

Short Answer Questions:Attempt

[8x5=40]
11.

Why file is used in programming? Explain different file opening modes.

12.

Write short notes on:
a. Macros
b. Null Pointer

14.

Write short notes on:
a. Macros
b. Null Pointer

15.

Write short notes on:
a. Macros
b. Null Pointer

16.

Write short notes on:
a. Macros
b. Null Pointer

17.

Write short notes on:
a. Macros
b. Null Pointer

Section C

Attempt any 1 question

[2x10=20]
18.

Write short notes on:
a. Macros
b. Null Pointer

19.

Write short notes on:
a. Macros
b. Null Pointer

20.

Write short notes on:
a. Macros
b. Null Pointer

21.

Write short notes on:
a. Macros
b. Null Pointer

Section D

go home

[2x10=20]
22.

Write short notes on:
a. Macros
b. Null Pointer

23.

Write short notes on:
a. Macros
b. Null Pointer

24.

Write short notes on:
a. Macros
b. Null Pointer

25.

Write short notes on:
a. Macros
b. Null Pointer