PPA Question Bank
PPA Question Bank
PPA Question Bank
UNIT-1
1. Explain the history of C.
2. What are the features of C language?
3. What are the advantages of C language?
4. Explain the structure of C programming with example.
5. What is a compiler?
6. What is the difference between a compiler and an interpreter?
7. Explain the tokens.
8. Explain the rules of naming identifiers with examples.
9. Define variables, keywords, and constants.
10. What do you mean by primitive and non-primitive data types?
11. Explain the datatypes in details with example.
12. What do you mean by comments? Write syntax of different types of comments?
UNIT-2
1. What is an operator? Explain different types of operator in C.
2. Write syntax and uses of ternary operator?
3. Explain the logical and bitwise operator available in C with suitable example.
4. Write a C program to check leap year using ternary operator.
5. Explain console based input output functions in C.
6. Explain printf() and scanf() function used in c program with the help of an example.
7. What is the syntax and usage of getchar() and putchar().
8. What is the use of getch()?
9. What do you understand by Header files?
10. What do you mean by Preprocessor directives?
UNIT-3
1. Explain if…… else statement in C with the help of an example.
2. What is a nested if statement? What is the role of the else if statement? Explain it with
example.
3. What is loop? How can do…..while vary from while loop.
4. Difference between for and while loop in c?
5. Explain any three control structures in C with proper Syntax and examples.
6. Explain the use of break, continue, and goto statements.
7. Difference between break and continue.
UNIT-4
1. Explain any two problem solving techniques.
2. Explain the different steps used to solve any problem.
3. What is an algorithm? Explain the characteristics of an algorithm.
4. Write an algorithm to check number is Palindrome or not.
5. What do you mean by the complexity of an algorithm?
6. Explain the complexity of time and space.
7. Differentiate between flowchart and algorithm. Write an algorithm to compute the sum of
digits.
8. Write the asymptotic notations used for the best case, average case, and worst case
analysis of algorithms.
9. What do you understand by Big O notation?
UNIT-5
1. Write a C program to calculate the addition of two numbers
2. Write a C program to calculate the area of the circle.
3. Write a C program to find out whether the given number is odd or even.
4. Write a C program to find maximum of three numbers.
5. Write a C program to reverse a given number.
6. Write a C program to calculate the Fibonacci series.
7. Write a C program to check whether the given number is Prime or not.
8. Write a C program to check whether the given number is Armstrong number or not.
9. Write a C program using a while loop to calculate the factorial of a given number.
10. Write a C program to print
1
23
456
UNIT-6
1. What is Function? Also explain the types of functions.
2. What is Actual parameter?
3. Differentiate between the call by value and the call by reference with the help of the
example.
4. Define Recursion. Explain with the example.
5. Define storage classes. Explain the types of storage classes.
6. Explain static and register storage class with example.
7. Explain scope of the variable.
8. How do you call a function in main C program? Explain with the help of a C program of
your own choice.