Professional Documents
Culture Documents
FYBCS C Programming Sem - I (2021-22) Question Paper
FYBCS C Programming Sem - I (2021-22) Question Paper
Instructions:
Write down answers in the space provided. Figures on right indicate marks.
Q. 1.) State True or False and write down correct statement. 3
1. Mod(%) operator permits use of Floating Point Data Type.
3. You don’t have to declare the variables at the start of the program.
Q. 2.) Write algorithm and draw a flowchart to read a number and check if it is even of
odd. 2
Q.3) Select correct alternative and write down correct statement. 2
Q.4) What will be the output of following programs, explain each in 2/3 Lines. 3
1)
void main()
{
int k, num=30;
k=(num>35)?(num<10?100:200):500;
printf("%d ",k);
}
2) void main()
{
int x = 0;
if (++x>0)
{
x++;
}
printf("%d",x);
}
(a) 2 (b) 10 (c) 11 (d) error
****