C LANGUAGE QUIZ 9 0 Created on May 04, 2020 By Sirjana GhimireAcharya C Language Quiz 9 1 / 10 Choose the best statement with respect to the following three program snippetsfor (i = 0; i < 10; i++){continue;}i = 0;while (i < 10){continue;i++;}i = 0;do{continue;i++;}while(i<10); All the loops are equivalent i.e. any of the three can be chosen and they all will perform exactly same. continue can't be used with all the three loops in C. After hitting the continue; statement in all the loops, the next expression to be executed would be controlling expression (i.e. i < 10) in all the 3 loops. None of the above is correct. 2 / 10 2. What is the return type of malloc() or calloc() void * int* void ** Pointer of allocated memory type 3 / 10 3. What is the output of the following program?void main(){int a=2;switch(a){case 1: printf("A");break;case 2: printf("B");continue;case 3: printf("C");break;case 4; printf("D");default: printf("E");}} B E B C E B C D E error 4 / 10 4. We use malloc and calloc for Dynamic memory allocation Static memory allocation Both dynamic and static memory allocation None of the above 5 / 10 5. What is the output of following program?void main(){int a=1;a=a<<15;printf("%d",a);} 32767 -32768 32768 -32768 6 / 10 6. What do the following declaration signify? int *f(); f is a function returning pointer to an int. f is a pointer variable of function type. f is a function pointer. f is a simple declaration of pointer variable. 7 / 10 7. What will be the output of the program? #include<stdio.h>#define MAN(x, y) ((x)>(y)) ? (x):(y); int main(){ int i=10, j=5, k=0; k = MAN(++i, j++); printf("%d, %d, %dn", i, j, k); return 0;} 12, 6, 12 11, 5, 11 11, 5, garbage 12, 6, garbage 8 / 10 8. What will be the output of the program? #include#define MAX(a, b, c) (a>b ? a>c ? a : c: b>c ? b : c) int main(){ int x; x = MAX(3+2, 2+7, 3+7); printf("%dn", x); return 0;} 5 10 9 3+7 9 / 10 9. Declare the following statement?"A pointer to an array of three chars". char *ptr[3](); char (*ptr[3])(); char (*ptr)[3]; char (*ptr)*[3]; 10 / 10 10. Output of following C program?#include<stdio.h>#define max abc#define abc 100int main(){printf("maximum is %d", max);return 0;} maximum is 100 abcimum is 100 100imum is 100 abcimum is abc Your score is The average score is 0% LinkedIn Facebook Twitter 0% Restart quiz