Aptitude Test C Programming For Advanced Students Level 3 in on October 11, 2019 April 20, 2020 Share Facebook Twitter Pinterest Email 0 Welcome to Your Quiz: Aptitude Test C Programming For Advanced Students Level 3 Name Email 1. what is the output of following program?void main(){printf("One");if(2>1)printf("Two");elseprintf("Three");printf("Four");}One Two ThreeOne Two FourTwo Three FourOne Three Four2. What is the output of the following program?void main(){int a;a=10;while(a++<=15)printf("%d",a);printf("%d",a+10);}10 11 12 13 14 15 2510 11 12 13 14 15 1611 12 13 14 15 16 2711 11 12 13 14 15 253. What is the output of the following program?void xyz(int p1, int *p2){ ++p1;++*p2;printf("%d%d",p1,*p2);}void main(){int a=10;xyz(a++,++*(&a));xyz(a++,++*(&a));printf("%d",a);}10 11 13 14 1411 12 13 14 1411 12 14 15 1512 13 15 16 164. What is the output of the following program?void main(){int a,b;a=b=10;while(a){a=b++<=13;printf("%d%d",a,b);}printf("%d%d",a+10,b+10);}1 11 1 12 1 13 1 14 0 15 a=11 b=250 11 1 12 1 13 1 14 0 15 a=10 b=251 11 1 12 1 13 1 14 0 15 a=10 b=250 11 1 12 1 13 1 14 0 15 a=10 b=255. What is the output of the following program?void main(){int a=1;while(a++<=1)while(a++<=2);printf("%d",a);}54326. What is the output of following program?main(){extern int a=5;printf("%d",a);return 0;}50errornone of these7. What is the output of the following program?void xyz(int p1, int *p2){++p1;++*p2;printf("%d%d",p1,*p2);}void main(){int a=10;xyz(a++,&a);xyz(a++,&a);printf("%d",a);}11 12 13 13 1410 11 12 13 1310 11 12 12 1311 12 13 14 148. what is the output of following program?void main(){float a;a=6.7;if(a==6.7)printf("A");elseprintf("B");}nothing display on screenBerrorA9. What is the output of the following program?void main(){int a;a=1;a++ * ++a;printf("%d",a);}643210. what is the output of following program?#include <stdio.h>void main(){int a=1;void xyz(int , int);xyz(++a,a++);xyz(a++,++a);printf("%d",a);}void xyz(int x, inty){printf("%d%d",x,y);}3 1 4 4 43 1 4 4 53 1 4 5 53 1 3 4 511. Can a program be invoked from another program ?TrueFalse12. What is the output of the following program?void main(){int a,b;a=b=1;a=a++ + ++b;b=b++ + ++a;printf("%d%d",a,b);}5 75 84 74 813. What is the output of the following program?void main(){int a;a=1;while(a<=1)if(a%2)printf("%d",a++);printf("%d",a+10);}2 121 112 111 1214. what is the output of following program?void main(){int a;a=1;while(a-->=1)while(a-->=0);printf("%d",a);}-30error315. What is the output of the following program?void main(){int a;a=100>90>80;printf("%d",a);}0none of these1error16. what is the output of following program?void main(){int a;a=10;a*=10+2;printf("%d",a);}1202210010217. what is the output of following program?void main(){int a;a=100;printf("%d%d",++a,a++);}102 101101 102102 100101 10118. How many times the while loop will get executed?main ( ){int a = 1 ;while ( a <= 100) ;{printf ( a = %d, a++ ) ;}}Infinite1010019. What will be the output of the following program?main( ){ int pskills[] = { 10, 20, 30, 40, 50 };int i, *ptr ;ptr = pskills;for ( i = 0 ; i <4 ; i++ ){fun(ptr++);printf ("\n%", *ptr ) ;}}void fun(int *i){*i = *i + 1;}10 20 30 4011 21 31 4121 31 41 5120 30 40 5020. what is the output of following program?void main(){int a=80;if(a++>80)printf("welcome%d",a);elseprintf("hello%d",a);}hello 81welcome 80welcome 81hello 80Thank You for Submitting your response for QuizAptitude Test C Programming For Advanced Students Level 3Please click on View Result Button to see the Result. Time is Up!(Visited 511 times, 1 visits today) Share This Previous Post← Aptitude Test C Programming For Advanced Students Level 2 Aptitude Test C Programming For Advanced Students Level 2 Next PostAptitude Test C Programming For Intermediate Students Level 2 → Aptitude Test C Programming For Intermediate Students Level 2