C Programming Name Email 1. What is the output of the following program?#include void f() { static int i; ++i; printf("%d", i); } main() { f(); f(); f(); } 121 111 122 123 None 2. “Stderr” is a standard error. Standard error function Standard error types Yes Standard error streams None 3. What is the output of the following program?#includevoid swap(int m, int n){int x = m;m = n;n = x;}main(){int x=5, y=3;swap(x,y);printf("%d %d", x, y);} 4 1 5 4 5 3 5 5 None 4. How many times below for loop will be executed ?#includeint main(){int i=0;for(;;)printf("%d",i);return 0;} 0 times 5 times Error Infinite times None 5. Which of the following statement can be used to free the allocated memory? vanish(var-name); free(var-name); erase(var-name); remove(var-name); None 6. Is there any difference between the following two statements?char *p=0;char *t=NULL; Yes No None 7. What is the output of the following program?#includemain(){char *s = "Fine";*s = 'N';printf("%s", s);} Both Compile error Runtime error None of above None 8. Which header file supports the functions - malloc() and calloc()? math.h stdlib.h stdio.h memory.h None 9. Guess the output of the following program :#includeint main(){int x = 10;float y = 10.0;if(x == y)printf("x and y are equal");elseprintf("x and y are not equal");return 0;} Run Time Error x and y are not equal Compile Error x and y are equal None 10. The correct order of evaluation for the expression “z = x + y * z / 4 % 2 – 1” * / % + - = - + = * % / - / * % - + = * / % = + - None Time's up