PPA Important Questions Unit 1 To 6
PPA Important Questions Unit 1 To 6
a) Ternary Operator
b) Increment and Decrement Operator
c) Assignment operators
d) Relational operators
Que 2: What is the purpose of putchar() and getchar(). Give example of each.
Que 6: Explain various Unformatted Input and Unformatted output function in C language . Give
Example of each
Que 9: Explain various formatted Input and formatted output function in C language . Give Example of
each
Que 2: Explain the different decision making structures in C language. Give examples of each.
Que 4: Write a Program to print out the sum of first N natural numbers.
Que 5 : Write a Program to generate all the Prime number in C language between 1 to 100.
Que 6: What is different between If and Switch statements. Explain with an Example.
Que 7: What is different between While and Do-While statements. Explain with an Example.
Que 9: Given the breadth and length of a rectangle, Find the area and perimeter of the rectangle by
writing a C Program.
Que 10: Write a Program to read the week day number as {1,2,3,4,5,6,7} and to print the week day
name using SWITCH statement, Where 1-> Sunday , 2-> Monday and so on … 7->Saturday.
Que 12: Write a Program to convert input temperature from Fahrenheit to Celsius and Vice Versa.
Que 13: Write a Program to compute the XN , Given X and N as Input by the user.
a) Nested If Statements
b) Nested for statements
c) Break and Continue
Que 15: Write all odd number between 701 and 800.
Que 17: Write a C program compute bitwise AND between 2 number given by the user at runtime.
Que 19 : Write a Program to find the Square and Square root of the number given by the user.
Que 20 : Write a C program to print Table of the number using for loop.
a) C Tokens
b) Identifiers
c) Variables and rules for defining a variables
d) Constant
e) Comments
f) Character Set
Que 5: Explain Why C is known as Functional Programming language. Show how function are used as a
building block for c Programming.
Que 1 : What do you mean by User Defined Function and Built in Function ? Give Example of both.
Que 2: What do you mean by Function Prototype and What information does it convey to the compiler.
Que 3: What do you mean by recursion and Write a program to find the GCD of two number using
recursion.
Que 4: What is recursion ? Write a program to find the factorial of number using Recusrsion?
Que 5: What is function? What are the types of function ? Give Example of each
Que 6: What are the different Storage classes in C language. Give Example of each
Que 1 : What are the steps involved in problem solving? Name the different problem solving techniques.
Que 4: Write a flowchart for computing the GCD of two numbers . Write the algorithm for this also.
Que 8: Write a algorithm and flowchart for finding the sum of the Fibonacci series of numbers.
Que 9: Write a algorithm and flowchart for finding the average of the students marks.