PPS Question Bank
PPS Question Bank
Important Questions
Chapter – Fundamentals of C
1. Define: algorithm, flowchart, compiler.
2. Show the important of stdio.h header file.
3. Define algorithm and explain different symbols used in flowchart.
4. Develop an algorithm to print first N Fibonacci numbers.
5. Write flowchart or algorithm to find area of a triangle.
6. What are header files? Name at least 3 with its usage.
7. List all operators used in C and explain any three with example.
8. Draw all symbols used in flowchart and draw flowchart to find factorial number.
9. Describe local and global variable with example.
10. Describe precedence and associativity of operators with example.
11. What do you mean by type conversion? Give example.
12. What is formatted output? Using printf() statement explain it.
13. Distinguish the data types provided by C programming language.
14. Explain different types of constants.
15. Implement a C Program to convert temperature from Fahrenheit to Celsius and vice
versa.
16. Demonstrate a C program to input an integer number and check last digit of number
is even or odd.
17. Explain getch(), getchar(), gets().
18. List out the operators used in C language and explain any three with example
Chapter – Control structure in C
1. Explain while loop with example.
2. Explain for loop with example.
3. Explain break and continue statement with example.
4. Explain various looping control structures with suitable example.
5. Write a C program to input an integer number and check last digit of number is even
or odd.
6. Define general form of 1) do while loop 2) Nested if 3) goto.
7. Explain switch case statement with example to read number between 1 to 7 and
print relatively day Sunday to Saturday.
8. Write a program to reverse a given number.
9. Write a program to find 1+1/2+1/3+1/4+...+1/n.
10. Write a program to check whether entered character is vowel or not?
11. Construct ‘C’ program to print the following pattern using loop
statement. 1
22
333
4444
55555
12. Write a program to find sum of first N odd numbers. Ex. 1+3+5+7+..........+N
Chapter – Functions
1. What is UDF? Describe advantages of UDF.
2. Classification of User defined function’s components (elements).
3. Discuss parameter passing technique used in C with example.
4. Create a function to swap the values of two variables.
5. In user defined function, what is actual argument and formal argument?
6. Explain call by value (pass by value) and call by reference (pass by reference) with
examples in brief.
7. Explain the function definition, function prototype and function call with relative
example.
Chapter – Recursion
1. Define recursion. List the advantages of recursion.
2. Create a function to check number is prime or not. If number is prime then function
return value 1 otherwise return 0.
3. Write a program to calculate nCr using user defined function. nCr = n! / (r! * (n-r)!)
4. What is recursive function? Explain with suitable example.
5. What care must be taken while writing a program with recursive function?
Chapter – Pointers
1. What is pointer? Explain with example to print the address of variable using pointer.
2. What is pointer? Which arithmetic operations are not valid on pointers?
3. Explain array of pointers with suitable example.
4. What is pointer? Which arithmetic operations are valid on pointers?
5. What is pointer to pointer? Write suitable example to demonstrate the concept.