Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Explain the structure of a C program. Discuss different categories of operators in C with suitable examples.

program-structure
2long10 marks

What is a function? Explain types of functions based on arguments and return value. Differentiate call by value and call by reference.

functions
3long10 marks

Define structure and union. Write a program using an array of structures to store and display employee details (id, name, salary).

structures
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Differentiate between high-level and low-level languages.

fundamentals
5short5 marks

Explain the switch-case statement with an example.

control-flow
6short5 marks

Write a program to sort an array of n numbers in ascending order.

arrays
7short5 marks

Explain the difference between getch(), getche() and getchar().

io-functions
8short5 marks

Write a program to count the number of words in a string.

strings
9short5 marks

What is recursion? List its advantages and disadvantages.

recursion
10short5 marks

Explain dynamic memory allocation functions in C.

memory
11short5 marks

Write a program to read and write a structure record to a file.

files
12short5 marks

Write short notes on the comma operator.

operators