11. Which of the following is not a valid control structure in C?
a) if-else
b) do-while
c) until
d) switch
12. What is the correct syntax to include a header file in C?
a) #include<filename>
b) include<filename>
c) #include “filename”
d) include “filename”
13. What is the output of the following code snippet?
#include<stdio.h>
int main()
{
int x = 5;
x += 3;
printf(“%d”, x);
return 0;
}
a) 5
b) 3
c) 8
d) 15
14. Which of the following is not a valid arithmetic operator in C?
a) +
b) +
c) *
d) %
15. What is the output of the following code snippet?
#include<stdio.h>
int main()
{
int x = 5;
int y = 3;
printf(“%d”, x == y);
return 0;
}
a) 0
b) 1
c) 5
d) 3