C LANGUAGE QUIZ 10 0 Created on May 05, 2020 By Sirjana GhimireAcharya C Language Quiz 10 1 / 10 Consider the following statements#define hypotenuse (a, b) sqrt (a*a+b*b);The macro call hypotenuse(a+2,b+3); Finds the hypotenuse of a triangle with sides a+2 and b+3 Is invalid Finds the square root of (a+2)2 and (b+3)2 Find the square root of 3*a + 4*b + 5 2 / 10 2.What will be the output of the program ?#includeint main(){int i=3, *j, k;j = &i;printf("%dn", i**j*i+*j);return 0;} 30 9 27 3 3 / 10 3.What will be the output of the program?#includeint main(){const c = -11;const int d = 34;printf("%d, %dn", c, d);return 0;} error -11,34 11,34 none of these 4 / 10 4. What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array? The element will be set to 0. The program may crash if some important data gets overwritten The array size would appropriately grow. The compiler would report an error. 5 / 10 5. What will be the output of the program? #include<stdio.h> int main(){ char far *near *ptr1; char far *far *ptr2; char far *huge *ptr3; printf("%d, %d, %dn", sizeof(ptr1), sizeof(ptr2), sizeof(ptr3)); return 0;} 2, 4, 2 2, 4, 4 2, 5, 6 1, 2, 5 6 / 10 6. What do the following declaration signify?char **argv; argv is a pointer to pointer. argv is a function pointer. argv is a pointer to a char pointer. argv is a member of function pointer. 7 / 10 7. What will be the output of the program?#include<stdio.h> int main(){ int y=85; const int x=y; printf("%dn", x); return 0;} 85 error 0 garbage value 8 / 10 8.In which stage the following code#include<stdio.h> gets replaced by the contents of the file stdio.h During editing During linking During preprocessing During execution 9 / 10 9. What is the use of "#pragma once"? Used to avoid multiple declarations of same variable. Used in a header file to avoid its inclusion more than once. Used in a c file to include a header file at least once. Used to avoid assertions 10 / 10 10. The following program won’t compile because there’re space between macro name and open parenthesis.#include "stdio.h"#define MYINC ( a ) ( ( a ) + 1 )int main(){ printf("Hi!"); return 0;} True False Your score is The average score is 0% LinkedIn Facebook Twitter 0% Restart quiz