Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

List different types of operators available in C and explain any four of them with examples.

operators
2long10 marks

What is recursion? Explain with a suitable example. Write a program to compute the GCD of two numbers using recursion.

recursion
3long10 marks

Define a structure. Create a structure STUDENT with members SID, name, address and CGPA, and write a program to read and display the records of 100 students.

structures
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Explain the basic structure of a C program.

program-structure
5short5 marks

Describe different formatted input and output functions in C.

io-functions
6short5 marks

Write a program to display the first 50 prime numbers.

loops
7short5 marks

Demonstrate the use of a recursive function with a suitable example.

recursion
8short5 marks

What are the characteristics of an array?

arrays
9short5 marks

Differentiate between actual and formal arguments.

functions
10short5 marks

Explain file handling in C. List the modes of opening a file.

files
11short5 marks

Write a program to swap two values using call by reference.

pointers
12short5 marks

Write short notes on the ternary (conditional) operator.

operators