Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Explain different types of decision-making (branching) statements in C with syntax and examples. Differentiate if-else with switch statement.

control-flow
2long10 marks

What is a function? Explain function declaration, definition and call. Differentiate call by value and call by reference with examples.

functions
3long10 marks

Write a program to read a matrix of order m x n and find the transpose of the matrix.

arrays
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

What are tokens in C? Explain different types of tokens.

tokens
5short5 marks

Explain the use of getchar() and putchar() functions with example.

io-functions
6short5 marks

Write a program to find the factorial of a number using recursion.

recursion
7short5 marks

What is a string? Explain any four built-in string handling functions.

strings
8short5 marks

Differentiate between structure and union with example.

structures
9short5 marks

Explain the relationship between arrays and pointers.

pointers
10short5 marks

Write a program to display the Fibonacci series up to n terms.

loops
11short5 marks

Explain the use of #define and #include preprocessor directives.

preprocessor
12short5 marks

What is dynamic memory allocation? Explain malloc() and calloc().

memory