Index
DHARMA ONLINE EXAM ETEST 1
Your score will be displayed while taking the exam itself. After finishing the ONLINE EXAM press index or => to go to the other etests. ALL THE BEST!
void main() { int d=5; printf("%f",d); }
? Undefined ? Error ? prints 5 ? None of the Given Answers
void main() { int i; for(i=1;i<4,i++) switch(i) case 1: printf("%d",i);break; { case 2:printf("%d",i);break; case 3:printf("%d",i);break; } switch(i) case 4:printf("%d",i); }
? 1,2,3,4 ? 1,2,4,3 ? 2,1,3,4 ? None of the Given Answers
void main() { char *s="\12345s\n"; printf("%d",sizeof(s)); }
? 8 ? 9 ? 6 ? None of the Given Answers
void main() { unsigned i=1; /* unsigned char k= -1 => k=255; */ signed j=-1; /* char k= -1 => k=65535 */ /* unsigned or signed int k= -1 =>k=65535 */ if(i printf("less"); else if(i>j) printf("greater"); else if(i==j) printf("equal"); }
? less ? greater ? equal ? None of the Given Answers
void main() { float j; j=1000*1000; printf("%f",j); }
? 1000000 ? Overflow ? Error ? None
int f() void main() { f(1); f(1,2); f(1,2,3); } f(int i,int j,int k) { printf("%d %d %d",i,j,k); }
? 3 5 6 ? 2 4 5 ? 1 2 3 ? None
void main() { int i=7; printf("%d",i++*i++); }
? 78 ? 56 ? 90 ? None of the Given Answers
#define one 0 #ifdef one printf("one is defined "); #ifndef one printf("one is not defined ");
? one is defined ? one is not defined ? Error ? None of the Given Answers
void main() { int count=10,*temp,sum=0; temp=&count; *temp=20; temp=∑ *temp=count; printf("%d %d %d ",count,*temp,sum); }
? 20 20 20 ? 10 10 10 ? 0 0 0 ? None of the Given Answers
what is alloca()
? It allocates and frees memory after use/after getting out of scope ? It allocates and but doesnt frees memory after use/after getting out of scope ? It de allocates memory ? None of the Given Answers
Index