Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

List the different types of operators in C and explain any four of them. Write a program to demonstrate the use of bitwise operators.

operators
2long10 marks

What are the characteristics of an array? Write a program to input the age of 500 persons and display the number of persons in different age groups.

arrays
3long10 marks

Explain call by reference. Write a program to swap two values using call by reference and discuss the role of pointers.

pointers
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

Create a structure called STUDENT with data members SID, name, address and CGPA, and write a program to initialize the values of 100 students.

structures
9short5 marks

Differentiate between while and do-while loops.

loops
10short5 marks

Explain the use of pointers with arrays.

pointers
11short5 marks

Write a program to find whether a string is a palindrome.

strings
12short5 marks

Write short notes on storage classes in C.

storage-class