Aptitude Test C Programming Basics Level 1 in on October 14, 2019 April 20, 2020 Share Facebook Twitter Pinterest Email 0 Welcome to Your Quiz: Aptitude Test C Programming Basics Level 1 Name Email 1. void main(){int a = 10.5;printf("%d",a);}010.510Compilation Error2. Is the following statement a declaration or definition extern int i;DeclarationDefinition3. What is sizeof() in C?MacroOperatorNone of theseFunction4. Output of the following Program :int main(){extern int i;i = 20;printf("%d", sizeof(i));return 0;}Undefined reference to i0Linking Error20Hint5. Is it true that a function may have several declaration, but only one definition.FlaseTrue6. Which of the following is executed by Preprocess?#includereturn 0void main(int argc , char ** argv)None of above7. //This program is compiled on 32 bit DEV-C++ int main(){char *ptr1, *ptr2;printf("%d %d", sizeof(ptr1), sizeof(ptr2));return 0;}2 24 4Undefined1 1Hint8. How many main() function we can have in our project?Depends on CompilerNo Limit129. int main(){char arr[5]="The newtum.com";printf("%s",arr);return 0;}The CThe newtumThe newtum.comCompilation ErrorHint10. int x = 10;int main(){int x = 0;printf("%d",x);return 0;}Undefined10Compilation Error011. void main(){ int a = printf ("newtum.com");printf("%d", a);}Compilation Errornewtum.com11newtum.com0Hint12. main(){int x = 10;{int x = 0;printf("%d",x);}}0Compilation ErrorUndefined10Hint13. What should be the output:void main(){ int a = 10/3;printf("%d",a); }033.333.314. int main(){int a = 5;int b = 10;int c = a+b;printf("%i",c);}Any other Compiler Error15Undefined i0Hint15. int main(){int a = 320;char *ptr;ptr =( char *)&a;printf("%d",*ptr);return 0;}3201606064Hint16. int main(){int x;x=10,20,30;printf("%d",x);return 0;}Compilation Error201030Hint17. Is it possible to run program without main() function?NoYes18. Which programming language is more faster among these?JAVAPHPCVisual Basic19. How many times newtum.com is printed?void main(){int a = 0;while(a++ < 5-++a)printf("newtum.com");}3 times1 times5 times2 times20. int main(){int _ = 10;int __ = 20;int ___ = _ + __;printf("__%d",___);return 0;}__0__30Compilation ErrorRuntime ErrorHintThank You for Submitting your response for QuizAptitude Test C Programming Basics Level 1Please click on View Result Button to see the Result. (Visited 529 times, 1 visits today) Share This Previous Post← Aptitude Test C Programming For Intermediate Students Level 2 Aptitude Test C Programming For Intermediate Students Level 2 Next PostAptitude Test C Programming Basics Level 2 → Aptitude Test C Programming Basics Level 2