PPS QB 2.5 Units AY24-25
PPS QB 2.5 Units AY24-25
UNIT -2
①. Mention bitwise operators write example
2. What relational and logical operators, explain with examples.
③ what is ternary/ Conditional operator
(4) Differentiate else…. if ladder and Switch..Case
⑤ Differentiate while & do... while.
⑥ Differentiate Break and continue.
⑦ Where will you use Goto Statement
⑧ How will define a function , explain with example.
9 Methods of parameter & explain with example
⑩) Define Recursion ? write factorial program using recursion /GCD/ fibanacci
11. Write in detail Storage classes With examples,
12. Define
1) user-defined function
2) Inter function Communication
3) Standard functions (Built-in functions)
13 .write a function to find the sum of digits of a given positive Number
// C program to compute sum of digits in
// number.
# include<stdio.h>
int main()
{
int n = 687;
printf(" %d ", getSum(n));
return 0;
}
UNIT -3
1 Define preprocessor with 5 commands
Define Macros with example.
② what is an array? Differentiate with an ordinary Variable
③ Search an element in an given array with given example
(4) WCP 1-Matrix multiplication
2-Matrix addition
3-matrix Transpose matrix
4-array applications
5-multi Dimensional arrays
(5)WCP 1-Linear Search
2-Binary search
(6) WCP, Bubble sort, selection sort
(7)WCP to find max/min in a given array
(8)WCP to find duplicate in an given array
(9)WCP to find second maximum number in an given array