FPL QB
FPL QB
FPL (Unit-I,II)
Question Bank
main()
{
int x=5,y=10,z=10;
x = y = = z;
printf(“%d”,x);
}
19.Write a C program that demonstrates the use of both relational and logical operators to
determine if a student passes based on two subjects' scores.
20.Describe the purpose of storage classes in C. Explain the difference between static and
extern storage classes with examples.
21.Identify syntax errors in the following program: Also write the correct Program with
Output.
#include<stdio.h>
#define PI 3.142;
int main()
{
int R;
float perimeter, area;
R=5;
perimeter=2.0*PI*R
area=PI*R*R;
printf(“%f ”, “%d”, &perimeter, &area)
}
Department of First Year Engineering
a) a>b&&a<c
b) a<b&&a>c
c) a= =c||b>a
d) b>15&&c<0||a>0
27.What is the Output of the following program:
main()
{
int x=100,y=200;
printf(“%d”,(x>y)?x:y);
}
28.Write a C Program that demonstrates the use of comma and sizeof operator
29.Explain relational operators in C. Write a C program to compare two integers using
relational operators.
30.Write a program in C to calculate Compound Interest. And Write an Algorithm and
Flowchart.
31.Write a program in C to accept the number and compute a square root, square and cube of
the number. And Write an Algorithm and Flowchart.