PPS QUESTION BANK
Long answer questions
UNIT-1
1. Describe about primary data types in detail
2. Explain different types of operators available in C.
3. Write about different types of if statements with examples.
4. write about switch statement.
5. Describe various loop statements.
6. Define expression. Write about operator precedence and associativity
7. What are command line arguments? Explain with example program
8. Write a program to check the given number is prime or not
9. Write a program to check the given number is Armstrong no or not.
10. Write a program to print Fibonacci series.
UNIT-2
1. Define array? Explain different types of arrays in detail.
2. What is string? Explain about different string handling functions
3. What is structure? Explain the process to declare, initialize and access structure ele-
ments
4. Write in detail about pointers. And explain pointers and arrays with program.
5. Program to perform matrix addition
6. Program to perform multiplication of two matrices
7. Write a program to find maximum and minimum element of an array
8. Program to find sum of array elements
9. Write a program to display the transpose of a matrix
10. Define a structure to represent student details like name,rollno, marks in 3 subjects.
Read the values from the user.
UNIT-3
1. Define file? What are the operations that can be performed on files
2. Explain about random access files
3. Describe in detail about preprocessor directives
4. Write a program to copy the contents of one file to another file
5. Write a ‘C’ program to merge two files.
UNIT-4
1. Define function? explain about types of functions in detail.
2. Explain different ways of passing parameters to a function
3. Write about different categories of user defined functions
4. Explain in detail about dynamic memory allocation with predefined functions
5. Write about recursion. Write a program to find factorial of a number
6. Describe storage classes.
UNIT-5
1. What is linear search explain with example. Write a program for linear search
2. What is binary search explain with example. Write a program for binary search
3. Explain bubble sort. Write a program to implement bubble sort
4. Explain selection sort. Write a program to implement selection sort
5. Explain insertion sort. Write a program to implement insertion sort