FYBBA (CA) C Programming Sem - I (2021-22) Question Paper
FYBBA (CA) 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. 6
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.
c. Which one of the following is a loop construct that will always be executed
once?_______
a) for b) while
c) switch d)do…while
Q.4) What will be the output of following programs, explain each in 2/3 Lines. 4
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
Q. 5.) Solve any 2 of following 3
A) Explain the structure of C Program.
B) Explain Relational operator in C.
C) Explain for loop with example.
****