InstructionsTotal Questions: 10Total Minutes: 10This ExamTray Free Online Exam or MCQ Quiz tests your C Programming Skills on C Structures and Pointers. Examples are given as questions and answers. Easily Attend Competitive Exams and Job Interview Questions. Go through C Theory Notes on Structures and Pointers before attempting this test. All the Best Challenge SCORE0 / 10Take This Exam 1*2*3*4*5*6*7*8*9*10*Q Buttons 1) What is the output of c program with structures.? int main() { struct car {int color;}; struct garage { struct car mycar[10]; }gar; struct car c1={5}; gar.mycar[0]=c1; printf("%d",gar.mycar[0]); return 0; } A) NULL B) 0 C) 5 D) Compiler error 2) What is the size of the below C structure in TurboC? int main() { struct books{ int pages; char str[4]; }b; printf("%d",sizeof(b)); return 0; } A) 5 B) 6 C) 7 D) 8 3) What is the output of C program with Structure pointer in TurboC.? int main() { struct books{ int pages; char str[4]; }*ptr; printf("%d",sizeof(ptr)); return 0; } A) 2 B) 6 C) 7 D) 8 4) In a nested structure definition, with country.state.district statement, memeber state is actually present in the structure.? (COUNTY, STATE, DISTRICT structures) A) district B) state C) country D) None of the above 5) What is actually passed if you pass a structure variable to a function.? A) Copy of structure variable B) Reference of structure variable C) Starting address of structure variable D) Ending address of structure variable 6) What is the output of C program with structures.? void show(int,int); int main() { struct paint{ int type; int color; }p; p.type=1; p.color=5; show(p.type,p.color); return 0; } void show(int a,int b) { printf("%d %d",a,b); } A) 1 1 B) 1 5 C) 5 1 D) Compiler error 7) What is the output of C program with structures.? int main() { struct paint{ int type; int color; }p1, p2; p1.type=1; p1.color=5; if(sizeof(p1)==sizeof(p2)) { printf("SAME"); } else { printf("DIFFERENT"); } return 0; } A) SAME B) DIFFERENT C) Compiler error D) None of the above Ad 8) Choose a correct statement about C structures. A) A structure enables display of folder structure in OS. B) A structure enables erasing contents in a folder in OS. C) A structure enables to detect and respond to mouse clicks. D) All the above 9) Choose a correct statement about structure and array.? A) An array stores only elements of same type. Accessing elements is easy. B) A structure is preferred when different type elements are to be combined as a single entity. C) An array implementation has performance improvements to structure D) All the above 10) What are the types of data allowed inside a structure.? A) int, float, double, long double B) char, enum, union C) pointers and Same structure type members D) All the above FINISH EXAM 1*2*3*4*5*6*7*8*9*10*PREVStructures and Pointers - Online Test 1 NEXTC Formatted Output and Format Specifiers - Online Test 1