PPS-I Questions Bank-2020
PPS-I Questions Bank-2020
PPS-I
IMPORTANT QUESTIONS (I-SEM)
UNIT 1
2 MARKS
F=A+B-C*D/E
10) Calculate Bitwise AND for 2, 3?
13) What is the difference between white box testing and black box testing?
16) Discuss the purpose of header files in C language and give examples?
17) Analyze the difference between = and == symbols in C?
3 MARKS
2 a) Write a c program to read number from keyboard and display same number
9. a) What is data type and explain different types of data types in C language?
11. a) Define an expression and state the rules for evaluating an expression with
an example?
2 MARKS
3) What is the difference between while loop and do-while loop? Explain with syntax and
example?
4) Write a c program to display even numbers below 100 using for loop?
10) State the difference between else if ladder and switch –case statement
13) Differentiate between one way, two way and multiway selection statements with
examples?
3 MARKS
5) What is the difference between entry-control led loop and exit-controlled loop?
10 MARKS
5) Write a c program to determine whether the given number is Armstrong number or not?
7) Write a c program to find all the prime numbers between 1 and n(where n value is supplied
By the user).
9) Write syntax of switch-case and implement a simple arithmetic calculator using switch-
case?
11) Write a c program to implement multiplication table of given number using any loop
14) Write a c program to find whether the given character is a vowel or not using switch
statement?
15) Write a c program to find the number of days in a month for the month given as
numerical value ( eg. Jan=1, feb=2 …) using switch statement
UNIT 3
2 Marks
8) What will happen when data type of a variable in the function declaration does not match
with the corresponding variable in the function header?
3 MARKS
10 MARKS
1) Write a c program to find GCD of given 2 numbers using recursive and non recursive?
2) Explain categories of functions with examples?
3) Explain storage classes with examples?
5) Write a c program to find factorial of a given number using recursive and non recursive?
6) Distinguish between user-defined and built-in function?
7) Distinguish between call-by-value and call-by-reference?
8) Explain the categories of function with examples.
9) Distinguish between function prototype and function definition.
10) Discuss the function mechanism with parameter and with return value?
11) Discuss the function mechanism with parameter and with no return value?
12) Write a C program to swap two values using functions.
13) Write a C program to calculate area of a triangle using function.
14) Write a C program to calculate factorial given number using functions.
15) Write a C program to find greatest among three numbers using functions?
16) Explain parameter passing techniques with suitable examples.
17) Write a C program to swap two integers using call–by-value method of passing
arguments to a function.
18) Write a C program to find GCD of given 2 numbers using functions.
19) Write a C program to calculate the reverse of a number.
UNIT 4
2 MARKS
3 MARKS
10 MARKS
UNIT 5
2 MARKS
10 MARKS
3) Write a c program to find the largest number in a list of elements using calloc () function?
4) Write a C program to find sum of even numbers and odd numbers using pointers and Arrays?