Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Topic :: CGI Perl





CGI Perl Interview Questions
Questions Answers Views Company eMail

C Questions Note : All the programs are tested under Turbo C/C++ compilers. It is assumed that,  Programs run under DOS environment,  The underlying machine is an x86 system,  Program is compiled using Turbo C/C++ compiler. The program output may depend on the information based on this assumptions (for example sizeof(int) == 2 may be assumed). Predict the output or error(s) for the following: 1. void main() { int const * p=5; printf("%d",++(*p)); } 2. main() { char s[ ]="man"; int i; for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]); } 3. main() { float me = 1.1; double you = 1.1; if(me==you) printf("I love U"); else printf("I hate U"); } 4. main() { static int var = 5; printf("%d ",var--); if(var) main(); } 5. main() { int c[ ]={2.8,3.4,4,6.7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf(" %d ",*c); ++q; } for(j=0;j<5;j++){ printf(" %d ",*p); ++p; } } 6. main() { extern int i; i=20; printf("%d",i); } 7. main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); } 8. main() { char *p; printf("%d %d ",sizeof(*p),sizeof(p)); } 9. main() { int i=3; switch(i) { default:printf("zero"); case 1: printf("one"); break; case 2:printf("two"); break; case 3: printf("three"); break; } } 10. main() { printf("%x",-1<<4); } 11. main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); } 12. main() { int c=- -2; printf("c=%d",c); } 13. #define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); } 14. main() { int i=10; i=!i>14; Printf ("i=%d",i); } 15. #include main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); } 16. #include main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d----%d",*p,*q); } 17. #include main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s; printf("%d",s->x); printf("%s",s->name); } 18. #include main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; } 19. main() { printf("\nab"); printf("\bsi"); printf("\rha"); } 20. main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); } 21. #define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); } 22. main() { char *p="hai friends",*p1; p1=p; while(*p!='\0') ++*p++; printf("%s %s",p,p1); } 23. #include #define a 10 main() { #define a 50 printf("%d",a); } 24. #define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); } 25. main() { printf("%p",main); } 27) main() { clrscr(); } clrscr(); 28) enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); } 29) void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); } 30) main() { int i=400,j=300; printf("%d..%d"); } 31) main() { char *p; p="Hello"; printf("%c\n",*&*p); } 32) main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); } 33) main() { static char names[5][20]={"pascal","ada","cobol","fortran","perl"}; int i; char *t; t=names[3]; names[3]=names[4]; names[4]=t; for (i=0;i<=4;i++) printf("%s",names[i]); } 34) void main() { int i=5; printf("%d",i++ + ++i); } 35) void main() { int i=5; printf("%d",i+++++i); } 36) #include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } } 37) main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here } 38) #define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); } 39) main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); } 40) #include main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); } 41) #include main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s=malloc(sizeof(struct xx)); printf("%d",s->x); printf("%s",s->name); } 42) #include main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; } 43) main() { extern int i; i=20; printf("%d",sizeof(i)); } 44) main() { printf("%d", out); } int out=100; 45) main() { extern out; printf("%d", out); } int out=100; 46) main() { show(); } void show() { printf("I'm the greatest"); } 47) main( ) { int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}}; printf(“%u %u %u %d \n”,a,*a,**a,***a); printf(“%u %u %u %d \n”,a+1,*a+1,**a+1,***a+1); } 48) main( ) { int a[ ] = {10,20,30,40,50},j,*p; for(j=0; j<5; j++) { printf(“%d” ,*a); a++; } p = a; for(j=0; j<5; j++) { printf(“%d ” ,*p); p++; } } 49) main( ) { static int a[ ] = {0,1,2,3,4}; int *p[ ] = {a,a+1,a+2,a+3,a+4}; int **ptr = p; ptr++; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); *ptr++; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); *++ptr; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); ++*ptr; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); } 50) main( ) { char *q; int j; for (j=0; j<3; j++) scanf(“%s” ,(q+j)); for (j=0; j<3; j++) printf(“%c” ,*(q+j)); for (j=0; j<3; j++) printf(“%s” ,(q+j)); } 51) main( ) { void *vp; char ch = ‘g’, *cp = “goofy”; int j = 20; vp = &ch; printf(“%c”, *(char *)vp); vp = &j; printf(“%d”,*(int *)vp); vp = cp; printf(“%s”,(char *)vp + 3); } 52) main ( ) { static char *s[ ] = {“black”, “white”, “yellow”, “violet”}; char **ptr[ ] = {s+3, s+2, s+1, s}, ***p; p = ptr; **++p; printf(“%s”,*--*++p + 3); } 53) main() { int i, n; char *x = “girl”; n = strlen(x); *x = x[n]; for(i=0; i main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); } 72) #include main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d..%d",*p,*q); } 73) #include main() { register i=5; char j[]= "hello"; printf("%s %d",j,i); } 74) main() { int i=5,j=6,z; printf("%d",i+++j); } 76) struct aaa{ struct aaa *prev; int i; struct aaa *next; }; main() { struct aaa abc,def,ghi,jkl; int x=100; abc.i=0;abc.prev=&jkl; abc.next=&def; def.i=1;def.prev=&abc;def.next=&ghi; ghi.i=2;ghi.prev=&def; ghi.next=&jkl; jkl.i=3;jkl.prev=&ghi;jkl.next=&abc; x=abc.next->next->prev->next->i; printf("%d",x); } 77) struct point { int x; int y; }; struct point origin,*pp; main() { pp=&origin; printf("origin is(%d%d)\n",(*pp).x,(*pp).y); printf("origin is (%d%d)\n",pp->x,pp->y); } 78) main() { int i=_l_abc(10); printf("%d\n",--i); } int _l_abc(int i) { return(i++); } 79) main() { char *p; int *q; long *r; p=q=r=0; p++; q++; r++; printf("%p...%p...%p",p,q,r); } 80) main() { char c=' ',x,convert(z); getc(c); if((c>='a') && (c<='z')) x=convert(c); printf("%c",x); } convert(z) { return z-32; } 81) main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; } 82) # include int one_d[]={1,2,3}; main() { int *ptr; ptr=one_d; ptr+=3; printf("%d",*ptr); } 83) # include aaa() { printf("hi"); } bbb(){ printf("hello"); } ccc(){ printf("bye"); } main() { int (*ptr[3])(); ptr[0]=aaa; ptr[1]=bbb; ptr[2]=ccc; ptr[2](); } 85) #include main() { FILE *ptr; char i; ptr=fopen("zzz.c","r"); while((i=fgetch(ptr))!=EOF) printf("%c",i); } 86) main() { int i =0;j=0; if(i && j++) printf("%d..%d",i++,j); printf("%d..%d,i,j); } 87) main() { int i; i = abc(); printf("%d",i); } abc() { _AX = 1000; } 88) int i; main(){ int t; for ( t=4;scanf("%d",&i)-t;printf("%d\n",i)) printf("%d--",t--); } // If the inputs are 0,1,2,3 find the o/p 89) main(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); } 90) main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitude"); } 91) In the following pgm add a stmt in the function fun such that the address of 'a' gets stored in 'j'. main(){ int * j; void fun(int **); fun(&j); } void fun(int **k) { int a =0; /* add a stmt here*/ } 92) What are the following notations of defining functions known as? i. int abc(int a,float b) { /* some code */ } ii. int abc(a,b) int a; float b; { /* some code*/ } 93) main() { char *p; p="%d\n"; p++; p++; printf(p-2,300); } 94) main(){ char a[100]; a[0]='a';a[1]]='b';a[2]='c';a[4]='d'; abc(a); } abc(char a[]){ a++; printf("%c",*a); a++; printf("%c",*a); } 95) func(a,b) int a,b; { return( a= (a==b) ); } main() { int process(),func(); printf("The value of process is %d !\n ",process(func,3,6)); } process(pf,val1,val2) int (*pf) (); int val1,val2; { return((*pf) (val1,val2)); } 96) void main() { static int i=5; if(--i){ main(); printf("%d ",i); } } 97) void main() { int k=ret(sizeof(float)); printf("\n here value is %d",++k); } int ret(int ret) { ret += 2.5; return(ret); } 98) void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); } 99) void main() { unsigned giveit=-1; int gotit; printf("%u ",++giveit); printf("%u \n",gotit=--giveit); } 100) void main() { int i; char a[]="\0"; if(printf("%s\n",a)) printf("Ok here \n"); else printf("Forget it\n"); } C,C++ Questions 1. Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object,. calling of that virtual method will result in which method being called? a. Base method b. Derived method.. 2. For the following C program #define AREA(x)(3.14*x*x) main() {float r1=6.25,r2=2.5,a; a=AREA(r1); printf("\n Area of the circle is %f", a); a=AREA(r2); printf("\n Area of the circle is %f", a); } What is the output? 3. What do the following statements indicate. Explain. • int(*p)[10] • int*f() • int(*pf)() • int*p[10] 4. void main() { int d=5; printf("%f",d); } 5. 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); } 6. void main() { char *s="\12345s\n"; printf("%d",sizeof(s)); } 7. 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(ij) printf("greater"); else if(i==j) printf("equal"); } 8. void main() { float j; j=1000*1000; printf("%f",j); } 1. 1000000 2. Overflow 3. Error 4. None 9. How do you declare an array of N pointers to functions returning pointers to functions returning pointers to characters? 10. A structure pointer is defined of the type time . With 3 fields min,sec hours having pointers to intergers. Write the way to initialize the 2nd element to 10. 11. In the above question an array of pointers is declared. Write the statement to initialize the 3rd element of the 2 element to 10; 12. 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); } What are the number of syntax errors in the above? 13. void main() { int i=7; printf("%d",i++*i++); } 14. #define one 0 #ifdef one printf("one is defined "); #ifndef one printf("one is not defined "); 15. void main() { int count=10,*temp,sum=0; temp=&count; *temp=20; temp=∑ *temp=count; printf("%d %d %d ",count,*temp,sum); } 16. There was question in c working only on unix machine with pattern matching. 14. what is alloca() 17. main() { static i=3; printf("%d",i--); return i>0 ? main():0; } 18. char *foo() { char result[100]); strcpy(result,"anything is good"); return(result); } void main() { char *j; j=foo() printf("%s",j); } 19. void main() { char *s[]={ "dharma","hewlett-packard","siemens","ibm"}; char **p; p=s; printf("%s",++*p); printf("%s",*p++); printf("%s",++*p); } 20. Output of the following program is main() {int i=0; for(i=0;i<20;i++) {switch(i) case 0:i+=5; case 1:i+=2; case 5:i+=5; default i+=4; break;} printf("%d,",i); } } a) 0,5,9,13,17 b) 5,9,13,17 c) 12,17,22 d) 16,21 e) Syntax error 21. What is the ouptut in the following program main() {char c=-64; int i=-32 unsigned int u =-16; if(c>i) {printf("pass1,"); if(c>2); } 28 Find the output for the following C program #define swap1(a,b) a=a+b;b=a-b;a=a-b; main() { int x=5,y=10; swap1(x,y); printf("%d %d\n",x,y); swap2(x,y); printf("%d %d\n",x,y); } int swap2(int a,int b) { int temp; temp=a; b=a; a=temp; return; } 29 Find the output for the following C program main() { char *ptr = "Ramco Systems"; (*ptr)++; printf("%s\n",ptr); ptr++; printf("%s\n",ptr); } 30 Find the output for the following C program #include main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } 31 Find the output for the following C program #include main() { char *p1; char *p2; p1=(char *) malloc(25); p2=(char *) malloc(25); strcpy(p1,"Ramco"); strcpy(p2,"Systems"); strcat(p1,p2); printf("%s",p1); } 32. Find the output for the following C program given that [1]. The following variable is available in file1.c static int average_float; 33. Find the output for the following C program # define TRUE 0 some code while(TRUE) { some code } 34. struct list{ int x; struct list *next; }*head; the struct head.x =100 Is the above assignment to pointer is correct or wrong ? 35.What is the output of the following ? int i; i=1; i=i+2*i++; printf(%d,i); 36. FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2) } Find the Error, If Any? 37. What are the output(s) for the following ? 38. #include char *f() {char *s=malloc(8); strcpy(s,"goodbye"); } main() { char *f(); printf("%c",*f()='A'); } 39. #define MAN(x,y) (x)>(y)?(x):(y) {int i=10; j=5; k=0; k=MAX(i++,++j); printf(%d %d %d %d,i,j,k); } 40. void main() { int i=7; printf("%d",i++*i++); } C,C++ Questions 1. Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object,. calling of that virtual method will result in which method being called? a. Base method b. Derived method.. 2. For the following C program #define AREA(x)(3.14*x*x) main() {float r1=6.25,r2=2.5,a; a=AREA(r1); printf("\n Area of the circle is %f", a); a=AREA(r2); printf("\n Area of the circle is %f", a); } What is the output? 3. What do the following statements indicate. Explain. • int(*p)[10] • int*f() • int(*pf)() • int*p[10] 4. void main() { int d=5; printf("%f",d); } 5. 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); } 6. void main() { char *s="\12345s\n"; printf("%d",sizeof(s)); } 7. 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(ij) printf("greater"); else if(i==j) printf("equal"); } 8. void main() { float j; j=1000*1000; printf("%f",j); } 1. 1000000 2. Overflow 3. Error 4. None 9. How do you declare an array of N pointers to functions returning pointers to functions returning pointers to characters? 10. A structure pointer is defined of the type time . With 3 fields min,sec hours having pointers to intergers. Write the way to initialize the 2nd element to 10. 11. In the above question an array of pointers is declared. Write the statement to initialize the 3rd element of the 2 element to 10; 12. 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); } What are the number of syntax errors in the above? 13. void main() { int i=7; printf("%d",i++*i++); } 14. #define one 0 #ifdef one printf("one is defined "); #ifndef one printf("one is not defined "); 15. void main() { int count=10,*temp,sum=0; temp=&count; *temp=20; temp=∑ *temp=count; printf("%d %d %d ",count,*temp,sum); } 16. There was question in c working only on unix machine with pattern matching. 14. what is alloca() 17. main() { static i=3; printf("%d",i--); return i>0 ? main():0; } 18. char *foo() { char result[100]); strcpy(result,"anything is good"); return(result); } void main() { char *j; j=foo() printf("%s",j); } 19. void main() { char *s[]={ "dharma","hewlett-packard","siemens","ibm"}; char **p; p=s; printf("%s",++*p); printf("%s",*p++); printf("%s",++*p); } 20. Output of the following program is main() {int i=0; for(i=0;i<20;i++) {switch(i) case 0:i+=5; case 1:i+=2; case 5:i+=5; default i+=4; break;} printf("%d,",i); } } a) 0,5,9,13,17 b) 5,9,13,17 c) 12,17,22 d) 16,21 e) Syntax error 21. What is the ouptut in the following program main() {char c=-64; int i=-32 unsigned int u =-16; if(c>i) {printf("pass1,"); if(c>2); } 28 Find the output for the following C program #define swap1(a,b) a=a+b;b=a-b;a=a-b; main() { int x=5,y=10; swap1(x,y); printf("%d %d\n",x,y); swap2(x,y); printf("%d %d\n",x,y); } int swap2(int a,int b) { int temp; temp=a; b=a; a=temp; return; } 29 Find the output for the following C program main() { char *ptr = "Ramco Systems"; (*ptr)++; printf("%s\n",ptr); ptr++; printf("%s\n",ptr); } 30 Find the output for the following C program #include main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } 31 Find the output for the following C program #include main() { char *p1; char *p2; p1=(char *) malloc(25); p2=(char *) malloc(25); strcpy(p1,"Ramco"); strcpy(p2,"Systems"); strcat(p1,p2); printf("%s",p1); } 32. Find the output for the following C program given that [1]. The following variable is available in file1.c static int average_float; 33. Find the output for the following C program # define TRUE 0 some code while(TRUE) { some code } 34. struct list{ int x; struct list *next; }*head; the struct head.x =100 Is the above assignment to pointer is correct or wrong ? 35.What is the output of the following ? int i; i=1; i=i+2*i++; printf(%d,i); 36. FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2) } Find the Error, If Any? 37. What are the output(s) for the following ? 38. #include char *f() {char *s=malloc(8); strcpy(s,"goodbye"); } main() { char *f(); printf("%c",*f()='A'); } 39. #define MAN(x,y) (x)>(y)?(x):(y) {int i=10; j=5; k=0; k=MAX(i++,++j); printf(%d %d %d %d,i,j,k); } 40. void main() { int i=7; printf("%d",i++*i++); } C Questions Note : All the programs are tested under Turbo C/C++ compilers. It is assumed that,  Programs run under DOS environment,  The underlying machine is an x86 system,  Program is compiled using Turbo C/C++ compiler. The program output may depend on the information based on this assumptions (for example sizeof(int) == 2 may be assumed). Predict the output or error(s) for the following: 1. void main() { int const * p=5; printf("%d",++(*p)); } 2. main() { char s[ ]="man"; int i; for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]); } 3. main() { float me = 1.1; double you = 1.1; if(me==you) printf("I love U"); else printf("I hate U"); } 4. main() { static int var = 5; printf("%d ",var--); if(var) main(); } 5. main() { int c[ ]={2.8,3.4,4,6.7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf(" %d ",*c); ++q; } for(j=0;j<5;j++){ printf(" %d ",*p); ++p; } } 6. main() { extern int i; i=20; printf("%d",i); } 7. main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); } 8. main() { char *p; printf("%d %d ",sizeof(*p),sizeof(p)); } 9. main() { int i=3; switch(i) { default:printf("zero"); case 1: printf("one"); break; case 2:printf("two"); break; case 3: printf("three"); break; } } 10. main() { printf("%x",-1<<4); } 11. main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); } 12. main() { int c=- -2; printf("c=%d",c); } 13. #define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); } 14. main() { int i=10; i=!i>14; Printf ("i=%d",i); } 15. #include main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); } 16. #include main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d----%d",*p,*q); } 17. #include main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s; printf("%d",s->x); printf("%s",s->name); } 18. #include main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; } 19. main() { printf("\nab"); printf("\bsi"); printf("\rha"); } 20. main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); } 21. #define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); } 22. main() { char *p="hai friends",*p1; p1=p; while(*p!='\0') ++*p++; printf("%s %s",p,p1); } 23. #include #define a 10 main() { #define a 50 printf("%d",a); } 24. #define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); } 25. main() { printf("%p",main); } 27) main() { clrscr(); } clrscr(); 28) enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); } 29) void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); } 30) main() { int i=400,j=300; printf("%d..%d"); } 31) main() { char *p; p="Hello"; printf("%c\n",*&*p); } 32) main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); } 33) main() { static char names[5][20]={"pascal","ada","cobol","fortran","perl"}; int i; char *t; t=names[3]; names[3]=names[4]; names[4]=t; for (i=0;i<=4;i++) printf("%s",names[i]); } 34) void main() { int i=5; printf("%d",i++ + ++i); } 35) void main() { int i=5; printf("%d",i+++++i); } 36) #include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } } 37) main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here } 38) #define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); } 39) main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); } 40) #include main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); } 41) #include main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s=malloc(sizeof(struct xx)); printf("%d",s->x); printf("%s",s->name); } 42) #include main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; } 43) main() { extern int i; i=20; printf("%d",sizeof(i)); } 44) main() { printf("%d", out); } int out=100; 45) main() { extern out; printf("%d", out); } int out=100; 46) main() { show(); } void show() { printf("I'm the greatest"); } 47) main( ) { int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}}; printf(“%u %u %u %d \n”,a,*a,**a,***a); printf(“%u %u %u %d \n”,a+1,*a+1,**a+1,***a+1); } 48) main( ) { int a[ ] = {10,20,30,40,50},j,*p; for(j=0; j<5; j++) { printf(“%d” ,*a); a++; } p = a; for(j=0; j<5; j++) { printf(“%d ” ,*p); p++; } } 49) main( ) { static int a[ ] = {0,1,2,3,4}; int *p[ ] = {a,a+1,a+2,a+3,a+4}; int **ptr = p; ptr++; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); *ptr++; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); *++ptr; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); ++*ptr; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); } 50) main( ) { char *q; int j; for (j=0; j<3; j++) scanf(“%s” ,(q+j)); for (j=0; j<3; j++) printf(“%c” ,*(q+j)); for (j=0; j<3; j++) printf(“%s” ,(q+j)); } 51) main( ) { void *vp; char ch = ‘g’, *cp = “goofy”; int j = 20; vp = &ch; printf(“%c”, *(char *)vp); vp = &j; printf(“%d”,*(int *)vp); vp = cp; printf(“%s”,(char *)vp + 3); } 52) main ( ) { static char *s[ ] = {“black”, “white”, “yellow”, “violet”}; char **ptr[ ] = {s+3, s+2, s+1, s}, ***p; p = ptr; **++p; printf(“%s”,*--*++p + 3); } 53) main() { int i, n; char *x = “girl”; n = strlen(x); *x = x[n]; for(i=0; i main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); } 72) #include main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d..%d",*p,*q); } 73) #include main() { register i=5; char j[]= "hello"; printf("%s %d",j,i); } 74) main() { int i=5,j=6,z; printf("%d",i+++j); } 76) struct aaa{ struct aaa *prev; int i; struct aaa *next; }; main() { struct aaa abc,def,ghi,jkl; int x=100; abc.i=0;abc.prev=&jkl; abc.next=&def; def.i=1;def.prev=&abc;def.next=&ghi; ghi.i=2;ghi.prev=&def; ghi.next=&jkl; jkl.i=3;jkl.prev=&ghi;jkl.next=&abc; x=abc.next->next->prev->next->i; printf("%d",x); } 77) struct point { int x; int y; }; struct point origin,*pp; main() { pp=&origin; printf("origin is(%d%d)\n",(*pp).x,(*pp).y); printf("origin is (%d%d)\n",pp->x,pp->y); } 78) main() { int i=_l_abc(10); printf("%d\n",--i); } int _l_abc(int i) { return(i++); } 79) main() { char *p; int *q; long *r; p=q=r=0; p++; q++; r++; printf("%p...%p...%p",p,q,r); } 80) main() { char c=' ',x,convert(z); getc(c); if((c>='a') && (c<='z')) x=convert(c); printf("%c",x); } convert(z) { return z-32; } 81) main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; } 82) # include int one_d[]={1,2,3}; main() { int *ptr; ptr=one_d; ptr+=3; printf("%d",*ptr); } 83) # include aaa() { printf("hi"); } bbb(){ printf("hello"); } ccc(){ printf("bye"); } main() { int (*ptr[3])(); ptr[0]=aaa; ptr[1]=bbb; ptr[2]=ccc; ptr[2](); } 85) #include main() { FILE *ptr; char i; ptr=fopen("zzz.c","r"); while((i=fgetch(ptr))!=EOF) printf("%c",i); } 86) main() { int i =0;j=0; if(i && j++) printf("%d..%d",i++,j); printf("%d..%d,i,j); } 87) main() { int i; i = abc(); printf("%d",i); } abc() { _AX = 1000; } 88) int i; main(){ int t; for ( t=4;scanf("%d",&i)-t;printf("%d\n",i)) printf("%d--",t--); } // If the inputs are 0,1,2,3 find the o/p 89) main(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); } 90) main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitude"); } 91) In the following pgm add a stmt in the function fun such that the address of 'a' gets stored in 'j'. main(){ int * j; void fun(int **); fun(&j); } void fun(int **k) { int a =0; /* add a stmt here*/ } 92) What are the following notations of defining functions known as? i. int abc(int a,float b) { /* some code */ } ii. int abc(a,b) int a; float b; { /* some code*/ } 93) main() { char *p; p="%d\n"; p++; p++; printf(p-2,300); } 94) main(){ char a[100]; a[0]='a';a[1]]='b';a[2]='c';a[4]='d'; abc(a); } abc(char a[]){ a++; printf("%c",*a); a++; printf("%c",*a); } 95) func(a,b) int a,b; { return( a= (a==b) ); } main() { int process(),func(); printf("The value of process is %d !\n ",process(func,3,6)); } process(pf,val1,val2) int (*pf) (); int val1,val2; { return((*pf) (val1,val2)); } 96) void main() { static int i=5; if(--i){ main(); printf("%d ",i); } } 97) void main() { int k=ret(sizeof(float)); printf("\n here value is %d",++k); } int ret(int ret) { ret += 2.5; return(ret); } 98) void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); } 99) void main() { unsigned giveit=-1; int gotit; printf("%u ",++giveit); printf("%u \n",gotit=--giveit); } 100) void main() { int i; char a[]="\0"; if(printf("%s\n",a)) printf("Ok here \n"); else printf("Forget it\n"); } C,C++ Questions 1. Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object,. calling of that virtual method will result in which method being called? a. Base method b. Derived method.. 2. For the following C program #define AREA(x)(3.14*x*x) main() {float r1=6.25,r2=2.5,a; a=AREA(r1); printf("\n Area of the circle is %f", a); a=AREA(r2); printf("\n Area of the circle is %f", a); } What is the output? 3. What do the following statements indicate. Explain. • int(*p)[10] • int*f() • int(*pf)() • int*p[10] 4. void main() { int d=5; printf("%f",d); } 5. 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); } 6. void main() { char *s="\12345s\n"; printf("%d",sizeof(s)); } 7. 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(ij) printf("greater"); else if(i==j) printf("equal"); } 8. void main() { float j; j=1000*1000; printf("%f",j); } 1. 1000000 2. Overflow 3. Error 4. None 9. How do you declare an array of N pointers to functions returning pointers to functions returning pointers to characters? 10. A structure pointer is defined of the type time . With 3 fields min,sec hours having pointers to intergers. Write the way to initialize the 2nd element to 10. 11. In the above question an array of pointers is declared. Write the statement to initialize the 3rd element of the 2 element to 10; 12. 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); } What are the number of syntax errors in the above? 13. void main() { int i=7; printf("%d",i++*i++); } 14. #define one 0 #ifdef one printf("one is defined "); #ifndef one printf("one is not defined "); 15. void main() { int count=10,*temp,sum=0; temp=&count; *temp=20; temp=∑ *temp=count; printf("%d %d %d ",count,*temp,sum); } 16. There was question in c working only on unix machine with pattern matching. 14. what is alloca() 17. main() { static i=3; printf("%d",i--); return i>0 ? main():0; } 18. char *foo() { char result[100]); strcpy(result,"anything is good"); return(result); } void main() { char *j; j=foo() printf("%s",j); } 19. void main() { char *s[]={ "dharma","hewlett-packard","siemens","ibm"}; char **p; p=s; printf("%s",++*p); printf("%s",*p++); printf("%s",++*p); } 20. Output of the following program is main() {int i=0; for(i=0;i<20;i++) {switch(i) case 0:i+=5; case 1:i+=2; case 5:i+=5; default i+=4; break;} printf("%d,",i); } } a) 0,5,9,13,17 b) 5,9,13,17 c) 12,17,22 d) 16,21 e) Syntax error 21. What is the ouptut in the following program main() {char c=-64; int i=-32 unsigned int u =-16; if(c>i) {printf("pass1,"); if(c>2); } 28 Find the output for the following C program #define swap1(a,b) a=a+b;b=a-b;a=a-b; main() { int x=5,y=10; swap1(x,y); printf("%d %d\n",x,y); swap2(x,y); printf("%d %d\n",x,y); } int swap2(int a,int b) { int temp; temp=a; b=a; a=temp; return; } 29 Find the output for the following C program main() { char *ptr = "Ramco Systems"; (*ptr)++; printf("%s\n",ptr); ptr++; printf("%s\n",ptr); } 30 Find the output for the following C program #include main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } 31 Find the output for the following C program #include main() { char *p1; char *p2; p1=(char *) malloc(25); p2=(char *) malloc(25); strcpy(p1,"Ramco"); strcpy(p2,"Systems"); strcat(p1,p2); printf("%s",p1); } 32. Find the output for the following C program given that [1]. The following variable is available in file1.c static int average_float; 33. Find the output for the following C program # define TRUE 0 some code while(TRUE) { some code } 34. struct list{ int x; struct list *next; }*head; the struct head.x =100 Is the above assignment to pointer is correct or wrong ? 35.What is the output of the following ? int i; i=1; i=i+2*i++; printf(%d,i); 36. FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2) } Find the Error, If Any? 37. What are the output(s) for the following ? 38. #include char *f() {char *s=malloc(8); strcpy(s,"goodbye"); } main() { char *f(); printf("%c",*f()='A'); } 39. #define MAN(x,y) (x)>(y)?(x):(y) {int i=10; j=5; k=0; k=MAX(i++,++j); printf(%d %d %d %d,i,j,k); } 40. void main() { int i=7; printf("%d",i++*i++); } C QUESTIONS How do you decide which integer type to use? What should the 64-bit type on a machine that can support it? What's the best way to declare and define global variables and functions? What does extern mean in a function declaration? What's the auto keyword good for? I can't seem to define a linked list successfully. I tried typedef struct { char *item; NODEPTR next; } *NODEPTR; but the compiler gave me error messages. Can't a structure in C contain a pointer to itself? How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters? How can I declare a function that can return a pointer to a function of the same type? What's the right declaration for main()? Is void main() correct? What am I allowed to assume about the initial values of variables which are not explicitly initialized? If global variables start out as "zero", is that good enough for null pointers and floating-point zeroes? This code, straight out of a book, isn't compiling: int f() { char a[] = "Hello, world!"; } What's wrong with this initialization? char *p = malloc(10); What is the difference between these initializations? char a[] = "string literal"; char *p = "string literal"; What's the difference between these two declarations? struct x1 { ... }; typedef struct { ... } x2; Why doesn't struct x { ... }; x thestruct; work? Can a structure contain a pointer to itself? What's the best way of implementing opaque (abstract) data types in C? I came across some code that declared a structure like this: struct name { int namelen; char namestr[1]; }; and then did some tricky allocation to make the namestr array act like it had several elements. Is this legal or portable? Is there a way to compare structures automatically? How can I pass constant values to functions which accept structure arguments? How can I read/write structures from/to data files? Why does sizeof report a larger size than I expect for a structure type, as if there were padding at the end? How can I determine the byte offset of a field within a structure? How can I access structure fields by name at run time? This program works correctly, but it dumps core after it finishes. Why? struct list { char *item; struct list *next; } /* Here is the main program. */ main(argc, argv) { ... } Can I initialize unions? What is the difference between an enumeration and a set of preprocessor #defines? Is there an easy way to print enumeration values symbolically? Why doesn't this code: a[i] = i++; work? I've experimented with the code int i = 3; i = i++; on several compilers. Some gave i the value 3, and some gave 4. Which compiler is correct? Can I use explicit parentheses to force the order of evaluation I want? Even if I don't, doesn't precedence dictate it? How can I understand these complex expressions? What's a "sequence point"? If I'm not using the value of the expression, should I use i++ or ++i to increment a variable? Why doesn't the code int a = 1000, b = 1000; long int c = a * b; work? I'm trying to declare a pointer and allocate some space for it, but it's not working. What's wrong with this code? char *p; *p = malloc(10); Does *p++ increment p, or what it points to? I have a char * pointer that happens to point to some ints, and I want to step it over them. Why doesn't ((int *)p)++; work? I have a function which accepts, and is supposed to initialize, a pointer: void f(int *ip) { static int dummy = 5; ip = &dummy; } But when I call it like this: int *ip; f(ip); the pointer in the caller remains unchanged. Why? Can I use a void ** pointer as a parameter so that a function can accept a generic pointer by reference? I have a function extern int f(int *); which accepts a pointer to an int. How can I pass a constant by reference? A call like f(&5); doesn't seem to work. Does C even have "pass by reference"? What is infamous null pointer? How do I get a null pointer in my programs? Is the abbreviated pointer comparison "if(p)" to test for non- null pointers valid? What if the internal representation for null pointers is nonzero? What is NULL and how is it #defined? How should NULL be defined on a machine which uses a nonzero bit pattern as the internal representation of a null pointer? If NULL were defined as follows: #define NULL ((char *)0) wouldn't that make function calls which pass an uncast NULL work? If NULL and 0 are equivalent as null pointer constants, which should I use? What does a run-time "null pointer assignment" error mean? How can I track it down? Why are array and pointer declarations interchangeable as function formal parameters? How can an array be an lvalue, if you can't assign to it? Practically speaking, what is the difference between arrays and pointers? How do I declare a pointer to an array? How can I set an array's size at run time? How can I avoid fixed-sized arrays? How can I declare local arrays of a size matching a passed-in array? How can I dynamically allocate a multidimensional array? How do I write functions which accept two-dimensional arrays when the width is not known at compile time? How can I use statically- and dynamically-allocated multidimensional arrays interchangeably when passing them to functions? Why doesn't sizeof properly report the size of an array when the array is a parameter to a function? Why doesn't this fragment work? char *answer; printf("Type something:\n"); gets(answer); printf("You typed \"%s\"\n", answer); I just tried the code char *p; strcpy(p, "abc"); and it worked. How? Why didn't it crash? How much memory does a pointer variable allocate? Why am I getting "warning: assignment of pointer from integer lacks a cast" for calls to malloc()? Why does some code carefully cast the values returned by malloc to the pointer type being allocated? Why isn't a pointer null after calling free()? How unsafe is it to use (assign, compare) a pointer value after it's been freed? When I call malloc() to allocate memory for a pointer which is local to a function, do I have to explicitly free() it? I'm allocating structures which contain pointers to other dynamically-allocated objects. When I free a structure, do I also have to free each subsidiary pointer? Must I free allocated memory before the program exits? How does free() know how many bytes to free? Can I query the malloc package to find out how big an allocated block is? Is it legal to pass a null pointer as the first argument to realloc()? What's the difference between calloc() and malloc()? Is it safe to take advantage of calloc's zero-filling? Does free() work on memory allocated with calloc(), or do you need a cfree()? What is alloca() and why is its use discouraged? Why doesn't strcat(string, '!'); work? How can I get the numeric (character set) value corresponding to a character, or vice versa? What is the right type to use for Boolean values in C? Is if(p), where p is a pointer, a valid conditional? How can I write a generic macro to swap two values? What's the best way to write a multi-statement macro? Is it acceptable for one header file to #include another? What's the difference between #include <> and #include "" ? What are the complete rules for header file searching? How can I construct preprocessor #if expressions which compare strings? Does the sizeof operator work in preprocessor #if directives? Can I use an #ifdef in a #define line, to define something two different ways? Is there anything like an #ifdef for typedefs? How can I use a preprocessor #if expression to tell if a machine is big-endian or little-endian? How can I list all of the predefined identifiers? How can I write a macro which takes a variable number of arguments? What is the "ANSI C Standard?" What's the difference between "const char *p" and "char * const p"? Why can't I pass a char ** to a function which expects a const char **? What's the correct declaration of main()? Can I declare main() as void ? What does the message "warning: macro replacement within a string literal" mean? What are #pragmas and what are they good for? What does "#pragma once" mean? Is char a[3] = "abc"; legal? What does it mean? Why can't I perform arithmetic on a void * pointer? What's the difference between memcpy() and memmove()? What should malloc(0) do? Return a null pointer or a pointer to 0 bytes? What's wrong with this code? char c; while((c = getchar()) != EOF) ... Why does the code while(!feof(infp)) { fgets(buf, MAXLINE, infp); fputs(buf, outfp); } copy the last line twice? How can I read one character at a time, without waiting for the RETURN key? How can I print a '%' character in a printf format string? What printf format should I use for a typedef like size_t when I don't know whether it's long or some other type? How can I implement a variable field width with printf? How can I print numbers with commas separating the thousands? What about currency formatted numbers? Why doesn't the call scanf("%d", i) work? How can I specify a variable width in a scanf() format string? Why doesn't this code: double d; scanf("%f", &d); work? How can I tell how much destination buffer space I'll need for an arbitrary sprintf call? How can I avoid overflowing the destination buffer with sprintf()? What's the difference between fgetpos/fsetpos and ftell/fseek? What are fgetpos() and fsetpos() good for? How can I redirect stdin or stdout to a file from within a program? How can I read a binary data file properly? How can I convert numbers to strings (the opposite of atoi)? Is there an itoa() function? Why does strncpy() not always place a '\0' terminator in the destination string? Why do some versions of toupper() act strangely if given an upper-case letter? How can I split up a string into whitespace-separated fields? How can I duplicate the process by which main() is handed argc and argv? How can I sort a linked list? How can I sort more data than will fit in memory? How can I get the current date or time of day in a C program? How can I add N days to a date? How can I find the difference between two dates? How can I get random integers in a certain range? How can I generate random numbers with a normal or Gaussian distribution? What does it mean when the linker says that _end is undefined? When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999? What's a good way to check for "close enough" floating-point equality? How do I round numbers? Why doesn't C have an exponentiation operator? How do I test for IEEE NaN and other special values? What's a good way to implement complex numbers in C? How can %f be used for both float and double arguments in printf()? Aren't they different types? How can I write a function that takes a variable number of arguments? How can I write a function that takes a format string and a variable number of arguments, like printf(), and passes them to printf() to do most of the work? How can I write a function analogous to scanf(), that calls scanf() to do most of the work? How can I discover how many arguments a function was actually called with? How can I write a function which takes a variable number of arguments and passes them to some other function (which takes a variable number of arguments)? How can I call a function with an argument list built up at run time? C QUESTIONS What does static variable mean? What is a pointer? What is a structure? What are the differences between structures and arrays? In header files whether functions are declared or defined? What are the differences between malloc()

9728

VISUAL BASIC QUESTIONS Does VB/Win make standalone .EXE files? What is the current version of Visual Basic for Windows? [++] Where can I get updated VB and other Microsoft files? Where can I get good up-to-date information about VB? [++] Are there any examples of commercial applications built using Visual Basic? What's the difference between MODAL and MODELESS forms? [++] When/Why should I use Option Explicit? Why does everybody say I should save in TEXT not BINARY? Is the Variant type slower than using other variable types? How do I make a text box not beep but do something else when I hit the Enter key? How do I implement an incremental search in list/dir/combo/file boxes? How do I get the Tab key to be treated like a normal character? How do I make an animated icon for my program? What is passing by reference? I get a "file not found" error on the IIF function when I distribute by program. Why? Is there any way to pass a variable to a form apart from using global variables? How should dates be implemented so they work with other language and country formats? Can a VB application be an OLE server? How do I dial a phone number without using the MSCOMM VBX? I have [several] megabytes of memory. Why do I get an "out of memory" error? [++] How do I mimic a toggle button? [++] How do I get my application on top? Is there a way to break long lines in VB code? How do I remove/change the picture property of a control at design time? Is a [foo] VBX/DLL available as shareware/freeware? How do I make my applications screen-resolution independent? How do I do Peek and Poke and other low-level stuff? [++] Why doesn't "my string" & Chr$(13) do what I want? How do I prevent multiple instances of my program? How do I implement an accelerator key for a text box? How do I force a file dialogue box to reread the currect disk? How do I get the number of free bytes on a disk? [++] Data Control missing from toolbox when I use VB under NT 3.5. Why? How do I tell when an application executed using the SHELL command is finished? How do I access C style strings? How can I change the printer Windows uses in code without using the print common dialog? How can I change orientation? How do I speed up control property access? How much gain in performance will I get if I write my number crunching routines in C instead of Visual Basic? How do you make a TEXTBOX read only? Or, how do I prevent the user from changing the text in a TEXTBOX? How can I create a VBX? How do you change the system menu (on the Control-Menu Box)? How do I play MID, WAV or other multimedia files? How can I call a 'hidden' DOS program from VB? How do I do drag & drop between applications? How do I use GetPrivateProfileString to read from INI files? How do I implement Undo? How do I create a window with a small title bar as in a floating toolbar? What is Pseudocode? Does VB support pointers to functions? How do I program the Novell NetWare API from VB? How do you change the icon and otherwise manipulate the DOS box? How do I make the mouse cursor invisible/visible? How do I create controls dynamically (at run-time)? How do I set the Windows wallpaper at runtime? How do I call help files from a VB program? [**] What is the Windows API? How do I call a DLL? What about DLL calls that require callbacks? Why can't I use an index with my VB accessed database? Is the Access Engine and Visual Basic Pro good enough for database work? How do you avoid the "Invalid use of null" error when reading null values from a database? What is "NULL"? How can I access a record by record number? How about Access 2.0 compatibility? How come I get a "No Current Record" error when I use a a Data Control on an empty table? How can I speed up my VB database application? How do I get a bitmap picture in a field in an Access database? What is "Reserved Error -1209"? I'm getting error message "Reserved Error [-nnnn] ("There is no message for this error")" from Jet Engine 2.0.Why? Why do I get "object not an array" when I try reference the fields of a global object variable which I have set to a table? Visual Basic Questions 1. Which controls can not be placed in MDI ? 2. List out controls which does not have events 3. Which property of textbox cannot be changed at runtime. What is the max size of textbox? 4. How many system controls are available 5. ___,_____ and ____ container objects. 6. ___ Property is to compress a image in image control. 7. ___,___ and __ are difference between image and picture controls. 8. To.set the command button for ESC ___ Property has to be changed. 9. Is it possible to set a shortcut key for label. 10. What is the default property of datacontrol. 11. ___,__,___ are the type of combo box? 12. __ no of controls in form. 13. OLE is used for _______ 14. What is the need of tabindex property is label control. 15. ___ is the control used to call a windows application. 16. Clear property is available in ____,___ control. 17. ___ Property is used to count no. of items in a combobox. 18. ___ is a property to resize a label control according to your caption. 19. Which controls have refresh method. 20. ___ property is used to change to ___ value to access a identity column'in datacontrols. 21. _____ is the property to ___,____,____ are valid for recordsource property of dat control. 22. To find the current recordposition in data control. 23. Timer control contains ________ no. of events. 24. ____ property is used to lock a textbox to enter a datas. 25. What is the need of zorder method? 26. ____ is the difference between Listindex and Tab index. 27. ____ property of menu cannot be set at run time. 28. Can you create a tabletype of recordset in Jet - connected ODBC dbengine. 29. Difference between listbox and combo box. 30. What are the new events in textbox that has been included in VB6.0 31. Can you create a updatecascade, Deletecascade relation in Ms- Access? If no, give on eample. 32. _____ collection in recordset used to assign a value from textbox to table columns without making abinding in datacontrol. 33. ___ argument can be used to make a menuitem into bold. 34. What is the difference between Msgbox Statement and MsgboxQ function? 35. What is.the difference between queryunload and unload in form? 36. ___,___ arguments will be used to run a executable program in shell function 37. ___ property used to add a menus at runtime. 38. What is the difference between modal and moduless window? 39. ___ VB constant make the menu item in centre. 40. ___ method used to move a recordset pointer in nth position in DAG. 41. To validate a range of values for a property whenever the property values changes,which type of property procedure you use? 42. What are 3 main differences between flexgrid control and dbgrid control? 43. What is the difference between change event in normal combobox and dbcombobox? 44. To populate a single column value which dbcontrols you to use? 45. What is ODBC? 46. PartsofODBC? 47. WhatisDSN? 48. WhatisDAO? 49. Types of cursors in DAO? 50. Types of LockEdits in DAO? 51 .Types of Recordsets. 51. Difference between Tabletype and Snapshot? 52. Draw Sequence Modal of DAO? Explain. 53. Difference between Dynaset and Snapshot? 54. Difference between Recordset and Querydef? 55. What is the use of Tabledef? 56. Default cursor Type and LockEdit type in DAO? 57. What is the default workspace? 58. Is it posible to Create Tables Through Querydef? 59. It is possible to access Text (x.txt) files? Explain. 60. What is ODBC Direct and Microsoft Jet Database Engine ? 61. Is it possible to Manipulate data through flexgrid? Explain. 62. Types of DBCombo boxes 63. What do you mean by Databound Controls? Explain. 64. What is RDO? 65. Types of cursors in RDO. 66. Types of LockEdits in RDO. 67. Types of LockEdits in RDO. 68. Types of Resultsets. 69. Difference between Recordset and Resultsets. 70. Explain Default cursor Type and LockEdits type in RDO 71. Draw Sequence Modal of RDO? Explain. 72. What is meant by Establish Connection in RDO? 74.1s it possible to Access BackEnd procedures? Explain. 73. What is OLE? Explain. 74. What is DDE? 75. Difference between Linked Object and Embedded Object? 76. Explain OLE Drag and Drop. 77. Difference between DDE and OLE. 78. What is the difference between Object and Class? 79. Give brief description about class? 80. Does VB Supports OOPS Concepts? Explain.. 81. Difference between Class Module and Standard Module? 82. Explain Get, Let, Set Properties. 83. Difference Types of Procedures in VB? 84. What is the use of NEW Keyword? Explain. 85. What is constructors and distructors. 86. Types of Modal windows in VB. 87. What is ActiveX? Explain. 88. Types of ActiveX Components in VB? 89. Difference between ActiveX Control and Standard Control. 90. Difference between ActiveX Exe and Dll. 91. What is instantiating? 92. Advantage of ActiveX Dll over Active Exe. 93. Difference Types of Instancing Property in ActiveX Dll and Exe. 94. What is ActiveX Dll and ActiveX Exe? 95. Write the steps in Creating ActiveX Dll and Active Exe? 96. Explain the differences between ActiveX Dll and ActiveX Exe? 97. How would you use ActiveX Dll and ActiveX Exe in your application? 98. How would you access objects created in ActiveX Exe and ActiveX D1T 99. What is the use of ActiveX Documents? 100. What is ActiveX Document? 101. What is the use of Visual Basic Document file? 102. What is hyperlink? 103. How would you create Visual basic Document file? 104. What is Internet Explorer and its uses? 105. How would you navigate between one document to another document 106. in Internet Explorer ? 107. How would you run your ActiveX Document Dll? 108. How would you view html code in Active Server Pages? 109. How would you cre.ate your application in DHTML? 110. What is ActiveX Control? 111. Write the Steps in Creating an ActiveX Control? 112. How would you attach an ActiveX control in Your Application? 113. How would you create properties in ActiveX Control? 114. What is the-use of property page Wizard in ActiveX Control? 115. How would you add elements in TreevieW Control. 116. What are the types of line styles available in Treeview Control? 117. What is the use of Imagelist Controls 118. How would you attach pictures in Treeview Control? 119. What are the uses of List View Control? 120. Explain the types of Views in Listview Control. 121. How would you attach pictures in column headers of List View Control? 122. How would you add column headers in listview control? 123. How would you add elements and pictures to listitems in listview control? 124. How would you activate animation control? 125. What is the use of progress Bar Control? 126. How would you find out the value property in Slider Bar Control? 127. What is the use of Data Form Wizard? 128. How would you map properties to controls by using ActiveX Control Interface Wizard? 129. How would you convert a form into document? 130. How would you Create a Query Builder and Explain its uses 131. How would you create properties by using class Builder Wizard? 132. HTML stands for What? Use of HTML ? 133. Whether HTML supports multimedia: and document links? 134. DHTML Is used for what? 135. What do you mean by HTTP? 136. What is the use of Hyperlink control for DHTML applications? 137. How can you Navigate from the DHTML application to another DHTML application? . 138. What are the Internet tools available in VB6.0? 139. Explain the usage of Web Browser Control? 140. What do you mean by ADO? 141. What is the difference Between ADO and other data access objects0 142. WhatisOLEDB? 143. What are the important components of OLEDB? 144. Through which protocol OLEDB components are interfaced? 145. It possible to call OLEDB's Features directly in VB without using any control? 146. What type of databases you can access through AD I Data Access Object? 147. How many objects resides in ADO ? 148. What is the use of Connection object? 149. What is the use of command Object? 150. Recordset object consists what? 151. What is the use of parameters collection? 152. Which type of object requires this object? 153. Is it possible to call backend procedures with ADO control? 154. Is there any Edit method in ADO Data Access method? 155. How can you check whether a record is valid record or Invalid record using ADO control or Object? 156. What do you mean by provider? 157. What type of recordsets are available in ADO? 158. Is it possible to call oracle database through ADO control or Object? 159. How many File System Controls are there ? Explain. 160. How can you filter out specific type of file using file system controls? 161. How can you get selected file from file system Control? 162. How many ways we can access file using VB? 163. Which method is preferred to save datas like database? 164. How to get freefile location in memory? 165. How to find size of the file. Which method or function is used to occomplish this? 166. Using which type we can access file line by line? 167. Which method is used to write context Into file? 168. How can you read content from file? 169. Binary Access-method isused to access file in which manner? 170. How can you check Beginning and End of the file? 171. What is the use of Scalewidth and ScaleHeight Proeperty? 172. What is the use of Active Control Property? 173. How can you save and Get data from Clipboard/ 174. What are the types of Error? 175. In which areas the Error occurs? 176. What are the tools available for Debuggiu in VB? 177. What is the use of Immediate, Local Window? 178. What is the use of debug Window? 179. How can you Implement windows functionality in VB? 180. How many types of API functions are availble in VB? 181. How can you Add API functions to your Application? 182. How to get Cursor position using API? 183. Is it possible to change menu runtime using API? If yes? Specify the function names. 184. What are the types of API Types.

Accenture,

3573

Java Questions 1. Can a main() method of class be invoked in another class? 2. What is the difference between java command line arguments and C command line arguments? 3. What is the difference between == & .equals 4. What is the difference between abstract class & Interface. 5. What is singleton class & it's implementation. 6. Use of static,final variable 7. Examples of final class 8. Difference between Event propagation & Event delegation 9. Difference between Unicast & Multicast model 10. What is a java bean 11. What is synchronized keyword used for. 12. What are the restrictions of an applet & how to make the applet access the local machines resources. 13. What is reflect package used for & the methods of it. 14. What is serialization used for 15. Can methods be overloaded based on the return types ? 16. Why do we need a finalze() method when Garbage Collection is there ? 17. Difference between AWT and Swing compenents ? 18. Is there any heavy weight component in Swings ? 19. Can the Swing application if you upload in net, be compatible with your browser? 20. What should you do get your browser compatible with swing components? 21. What are the methods in Applet ? 22. When is init(),start() called ? 23. When you navigate from one applet to another what are the methods called? 24. What is the difference between Trusted and Untrusted Applet ? 25. What is Exception ? 26. What are the ways you can handle exception ? 27. When is try,catch block used ? 28. What is finally method in Exceptions ? 29. What are the types of access modifiers ? 30. What is protected and friendly ? 31. What are the other modifiers ? 32. Is synchronised modifier ? 33. What is meant by polymorphism ? 34. What is inheritance ? 35. What is method Overloading ? What is this in OOPS ? 36. What is method Overriding ? What is it in OOPS ? 37. Does java support multi dimensional arrays ? 38. Is multiple inheritance used in Java ? 39. How do you send a message to the browser in JavaScript ? 40. Does javascript support multidimensional arrays ? 41. Is there any tool in java that can create reports ? 42. What is meant by Java ? 43. What is meant by a class ? 44. What is meant by a method ? 45. What are the OOPS concepts in Java ? 46. What is meant by encapsulation ? Explain with an example 47. What is meant by inheritance ? Explain with an example 48. What is meant by polymorphism ? Explain with an example 49. Is multiple inheritance allowed in Java ? Why ? 50. What is meant by Java interpreter ? 51. What is meant by JVM ? 52. What is a compilation unit ? 53. What is meant by identifiers ? 54. What are the different types of modifiers ? 55. What are the access modifiers in Java ? 56. What are the primitive data types in Java ? 57. What is meant by a wrapper class ? 58. What is meant by static variable and static method ? 59. What is meant by Garbage collection ? 60. What is meant by abstract class 61. What is meant by final class, methods and variables ? 62. What is meant by interface ? 63. What is meant by a resource leak ? 64. What is the difference between interface and abstract class ? 65. What is the difference between public private, protected and static 66. What is meant by method overloading ? 67. What is meant by method overriding ? 68. What is singleton class ? 69. What is the difference between an array and a vector ? 70. What is meant by constructor ? 71. What is meant by casting ? 72. What is the difference between final, finally and finalize ? 73. What is meant by packages ? 74. What are all the packages ? 75. Name 2 calsses you have used ? 76. Name 2 classes that can store arbitrary number of objects ? 77. What is the difference between java.applet.* and java.applet.Applet ? 78. What is a default package ? 79. What is meant by a super class and how can you call a super class ? 80. What is anonymous class ? 81. Name interfaces without a method ? 82. What is the use of an interface ? 83. What is a serializable interface ? 84. How to prevent field from serialization ? 85. What is meant by exception ? 86. How can you avoid the runtime exception ? 87. What is the difference between throw and throws ? 88. What is the use of finally ? 89. Can multiple catch statements be used in exceptions ? 90. Is it possible to write a try within a try statement ? 91. What is the method to find if the object exited or not ? 92. What is meant by a Thread ? 93. What is meant by multi-threading ? 94. What is the 2 way of creating a thread ? Which is the best way and why? 95. What is the method to find if a thread is active or not ? 96. What are the thread-to-thread communcation ? 97. What is the difference between sleep and suspend ? 98. Can thread become a member of another thread ? 99. What is meant by deadlock ? 100. How can you avoid a deadlock ? 101. What are the three typs of priority ? 102. What is the use of synchronizations ? 103. Garbage collector thread belongs to which priority ? 104. What is meant by time-slicing ? 105. What is the use of 'this' ? 106. How can you find the length and capacity of a string buffer ? 107. How to compare two strings ? 108. What are the interfaces defined by Java.lang ? 109. What is the purpose of run-time class and system class 110. What is meant by Stream and Types ? 111. What is the method used to clear the buffer ? 112. What is meant by Stream Tokenizer ? 113. What is serialization and de-serialisation ? 114. What is meant by Applet ? 115. How to find the host from which the Applet has originated ? 116. What is the life cycle of an Applet ? 117. How do you load an HTML page from an Applet ? 118. What is meant by Applet Stub Interface ? 119. What is meant by getCodeBase and getDocumentBase method ? 120. How can you call an applet from a HTML file 121. What is meant by Applet Flickering ? 122. What is the use of parameter tag ? 123. What is audio clip Interface and what are all the methods in it ? 124. What is the difference between getAppletInfo and getParameterInfo ? 125. How to communicate between applet and an applet ? 126. What is meant by event handling ? 127. What are all the listeners in java and explain ? 128. What is meant by an adapter class ? 129. What are the types of mouse event listeners ? 130. What are the types of methods in mouse listeners ? 131. What is the difference between panel and frame ? 132. What is the default layout of the panel and frame ? 133. What is meant by controls and types ? 134. What is the difference between a scroll bar and a scroll panel. 135. What is the difference between list and choice ? 136. How to place a component on Windows ? 137. What are the different types of Layouts ? 138. What is meant by CardLayout ? 139. What is the difference between GridLayout and GridBagLayout 140. What is the difference between menuitem and checkboxmenu item. 141. What is meant by vector class, dictionary class , hash table class,and property class ? 142. Which class has no duplicate elements ? 143. What is resource bundle ? 144. What is an enumeration class ? 145. What is meant by Swing ? 146. What is the difference between AWT and Swing ? 147. What is the difference between an applet and a Japplet 148. What are all the components used in Swing ? 149. What is meant by tab pans ? 150. What is the use of JTree ? 151. How can you add and remove nodes in Jtree. 152. What is the method to expand and collapse nodes in a Jtree 153. What is the use of JTable ? 154. What is meant by JFC ? 155. What is the class in Swing to change the appearance of the Frame in Runtime. 156. How to reduce flicking in animation ? 157. What is meant by Javabeans ? 158. What is JAR file ? 159. What is meant by manifest files ? 160. What is Introspection ? 161. What are the steps involved to create a bean ? 162. Say any two properties in Beans ? 163. What is persistence ? 164. What is the use of beaninfo ? 165. What are the interfaces you used in Beans ? 166. What are the classes you used in Beans ? 167. What is the diffrence between an Abstract class and Interface 168. What is user defined exception ? 169. What do you know about the garbate collector ? 170. What is the difference between C++ & Java ? 171. How do you communicate in between Applets & Servlets ? 172. What is the use of Servlets ? 173. In an HTML form I have a Button which makes us to open another page in 15 seconds. How will do you that ? 174. What is the difference between Process and Threads ? 175. How will you initialize an Applet ? 176. What is the order of method invocation in an Applet ? 177. When is update method called ? 178. How will you communicate between two Applets ? 179. Have you ever used HashTable and Dictionary ? 180. What are statements in JAVA ? 181. What is JAR file ? 182. What is JNI ? 183. What is the base class for all swing components ? 184. What is JFC ? 185. What is Difference between AWT and Swing ? 186. Considering notepad/IE or any other thing as process, What will Happen if you start notepad or IE 3 times? Where 3 processes are started or 3 threads are started ? 187. How does thread synchronization occurs inside a monitor ? 188. How will you call an Applet using a Java Script function ? 189. Is there any tag in HTML to upload and download files ? 190. Why do you Canvas ? 191. How can you push data from an Applet to Servlet ? 192. What are the benefits of Swing over AWT ? 193. Where the CardLayout is used ? 194. What is the Layout for ToolBar ? 195. What is the difference between Grid and GridbagLayout ? 196. How will you add panel to a Frame ? 197. What is the corresponding Layout for Card in Swing ? 198. What is light weight component ? 199. What is bean ? Where it can be used ? 200. What is difference in between Java Class and Bean ? 201. What is the mapping mechanism used by Java to identify IDL language ? 202. Diff between Application and Applet ? 203. What is serializable Interface ? 204. What is the difference between CGI and Servlet ? 205. What is the use of Interface ? 206. Why Java is not fully objective oriented ? 207. Why does not support multiple Inheritance ? 208. What it the root class for all Java classes ? 209. What is polymorphism ? 210. Suppose If we have variable ' I ' in run method, If I can create one or More thread each thread will occupy a separate copy or same variable will be shared ? 211. What is Constructor and Virtual function? Can we call Virtual 212. Funciton in a constructor ? 213. Why we use OOPS concepts? What is its advantage ? 214. What is the difference in between C++ and Java ? can u explain in detail? 215. What is the exact difference in between Unicast and Multicast object ? Where we will use ? 216. How do you sing an Applet ? 217. In a Container there are 5 components. I want to display the all the components names, how will you do that one ? 218. Why there are some null interface in java ? What does it mean ? 219. Give me some null interfaces in JAVA ? 220. Tell me the latest versions in JAVA related areas ? 221. What is meant by class loader ? How many types are there? When will we use them ? 222. What is meant by flickering ? 223. What is meant by cookies ? Explain ? 224. Problem faced in your earlier project 225. How OOPS concept is achieved in Java 226. Features for using Java 227. How does Java 2.0 differ from Java 1.0 228. Public static void main - Explain 229. What are command line arguments 230. Explain about the three-tier model 231. Difference between String & StringBuffer 232. Wrapper class. Is String a Wrapper Class 233. What are the restriction for static method Purpose of the file class 234. Default modifier in Interface 235. Difference between Interface & Abstract class 236. Can abstract be declared as Final 237. Can we declare variables inside a method as Final Variables 238. What is the package concept and use of package 239. How can a dead thread be started 240. Difference between Applet & Application 241. Life cycle of the Applet 242. Can Applet have constructors 243. Differeence between canvas class & graphics class 244. Explain about Superclass & subclass 245. What is AppletStub 246. Explain Stream Tokenizer 247. What is the difference between two types of threads 248. Checked & Unchecked exception 249. Use of throws exception 250. What is finally in exception handling Vector class 251. What will happen to the Exception object after exception handling 252. Two types of multi-tasking 253. Two ways to create the thread 254. Synchronization 255. I/O Filter 256. Can applet in different page communicate with each other 257. Why Java is not 100 % pure OOPS ? ( EcomServer ) 258. When we will use an Interface and Abstract class ? 259. How to communicate 2 threads each other ? JAVA QUESTIONS What is the difference between an Abstract class and Interface? What is user defined exception? What do you know about the garbage collector? What is the difference between java and c++? In an HTML form I have a button which makes us to open another page in 15 seconds. How will you do that? What is the difference between process and threads? What is update method called? Have you ever used HashTable and Directory? What are statements in Java? What is a JAR file? What is JNI? What is the base class for all swing components? What is JFC? What is the difference between AWT and Swing? Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times ? Where three processes are started or three threads are started? How does thread synchronization occur in a monitor? Is there any tag in HTML to upload and download files? Why do you canvas? How can you know about drivers and database information ? What is serialization? Can you load the server object dynamically? If so what are the 3 major steps involved in it? What is the layout for toolbar? What is the difference between Grid and Gridbaglayout? How will you add panel to a frame? Where are the card layouts used? What is the corresponding layout for card in swing? What is light weight component? Can you run the product development on all operating systems? What are the benefits if Swing over AWT? How can two threads be made to communicate with each other? What are the files generated after using IDL to java compiler? What is the protocol used by server and client? What is the functionability stubs and skeletons? What is the mapping mechanism used by java to identify IDL language? What is serializable interface? What is the use of interface? Why is java not fully objective oriented? Why does java not support multiple inheritance? What is the root class for all java classes? What is polymorphism? Suppose if we have a variable 'I' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared? What are virtual functions? Write down how will you create a Binary tree? What are the traverses in binary tree? Write a program for recursive traverse? What are session variable in servlets? What is client server computing? What is constructor and virtual function? Can we call a virtual function in a constructor? Why do we use oops concepts? What is its advantage? What is middleware? What is the functionality of web server? Why is java not 100% pure oops? When will you use an interface and abstract class? What is the exact difference in between Unicast and Multicast object? Where will it be used? What is the main functionality of the remote reference layer? How do you download stubs from Remote place? I want to store more than 10 objects in a remote server? Which methodology will follow? What is the main functionality of Prepared Statement? What is meant by Static query and Dynamic query? What are Normalization Rules? Define Normalization? What is meant by Servelet? What are the parameters of service method? What is meant by Session? Explain something about HTTP Session Class? In a container there are 5 components. I want to display all the component names, how will you do that? Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA? Tell some latest versions in JAVA related areas? What is meant by class loader? How many types are there? When will we use them? What is meant by flickering? What is meant by distributed application? Why are we using that in our application? What is the functionality of the stub? Explain about version control? Explain 2-tier and 3-tier architecture? What is the role of Web Server? How can we do validation of the fields in a project? What is meant by cookies? Explain the main features? Why java is considered as platform independent? What are the advantages of java over C++? How java can be connected to a database? What is thread? What is difference between Process and Thread? Does java support multiple inheritance? if not, what is the solution? What are abstract classes? What is an interface? What is the difference abstract class and interface? What are adapter classes? what is meant wrapper classes? What are JVM.JRE, J2EE, JNI? What are swing components? What do you mean by light weight and heavy weight components? What is meant by function overloading and function overriding? Does java support function overloading, pointers, structures, unions or linked lists? What do you mean by multithreading? What are byte codes? What are streams? What is user defined exception? In an HTML page form I have one button which makes us to open a new page in 15 seconds. How will you do that? Advanced JAVA QUESTIONS What is RMI? Explain about RMI Architecture? What are Servelets? What is the use of servlets? Explain RMI Architecture? How will you pass values from HTML page to the servlet? How do you load an image in a Servelet? What is purpose of applet programming? How will you communicate between two applets? What IS the difference between Servelets and Applets? How do you communicate in between Applets and Servlets? What is the difference between applet and application? What is the difference between CGI and Servlet? In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify the same information whether it will connect to the database or it will be used previous information? What are the difference between RMI and Servelets? How will you call an Applet using Java Script Function? How can you push data from an Applet to a Servlet? What are 4 drivers available in JDBC? At what situation are four of the drivers used? If you are truncated using JDBC , how can you that how much data is truncated? How will you perform truncation using JDBC? What is the latest version of JDBC? What are the new features added in that? What is the difference between RMI registry and OS Agent? To a server method, the client wants to send a value 20, with this value exceeds to 20 a message should be sent to the client . What will you do for achieving this? How do you invoke a Servelet? What is the difference between doPost method and doGet method? What is difference between the HTTP Servelet and Generic Servelet? Explain about their methods and parameters? Can we use threads in Servelets? Write a program on RMI and JDBC using Stored Procedure? How do you swing an applet? How will you pass parameters in RMI? Why do you serialize? In RMI ,server object is first loaded into memory and then the stub reference is sent to the client. true or false? Suppose server object not loaded into the memory and the client request for it. What will happen? What is the web server used for running the servelets? What is Servlet API used for connecting database? What is bean? Where can it be used? What is the difference between java class and bean? Can we sent objects using Sockets? What is the RMI and Socket? What is CORBA? Can you modify an object in corba? What is RMI and what are the services in RMI? What are the difference between RMI and CORBA? How will you initialize an Applet? What is the order of method invocation in an Applet? What is ODBC and JDBC? How do you connect the Database? What do you mean by Socket Programming? What is difference between Generic Servlet and HTTP Servelet? What you mean by COM and DCOM? what is e-commerce?

6061

suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1796

Hi i am a canadian my wife has PR card but wife can't speak english properly.i am thinking to go us for visit with my wife.my qus.is can i go to embassy with her when she got the interview date? Thank you.

2011

1. what is 3 point calibration & 5 point calibration? 2. If we use hart communicator to set the LRV & URV of a smart transmitter, did we calibrate the transmitter? why? 3. Make a complet list if meterials needed to properly connect a pressure gauge to a steam pipe using 1/2 inch stainless steel tubing. The gauge connections is 1/2 inch NPT-M and the steam pipe tap has a 1/2 inch female coupling, compression fittings are use. 4. What are the tools in loop checking? 5. What would the ISA symbol of a square root extractor look like? 6. What would you do to completely prepare for the configuration? 7. What safety measures must you undertake when doing configuration? 8. what are the two most commonly use programming languages used when we configure a PLC? 9. What would you do if you accidentally skipped a step in the configuration procedure? 10. How would you know if the configuration were sucessful? 11. Name at least 3 selections available when we configure the burnout protection of a controller?

EI Electrotechnical Institute,

3 36218

HI,how to know that the MEGGER which i am using is working properly,reply....thankyou

NTPC,

2 6111

I have 2 yrs 10 months experience in manual testing. there is a gap of 3 yrs in between. just 3 months before i rejoined the same company. I am looking for new & better job.What I have to enhance my career to up level, should I have to do Automation course or any other. Guide me properly.

1831

what's prime importance of protection in electrical system.if protection system don't work properly what can happen in electrical system?

1864

I attended an interview with CGI last week for network engineer and here are the questions that might help you guys who are going to attend interviews.

CGI,

1 6587

Hi all, i have a requirement in Conditional drill through. I have a list report with Cities India, UK, USA, China, japan, Canada.... In the above cities i want to give Hyperlinks(Drill) for Only India & UK. Could you please send me the steps????

1 5324

My rtd working well at the same time r/i converter is not working properly.when power is given to rtd..it is giving 30mA and getting 2.4 mA if i remove the compensate leads No matter how many ohms.why it is happening like so?what is the solution?rtd range-0-200deg c& 4-20 mA o/p.please give me solutiin anyone......

1 4262

IN THE REPORT I WANNA APPLY HYPERLINK FOR A CELL IN THE COLUMN/ROW HOW TO ACHIEVE THIS? EG: YEAR COLUMN : 2001,2002,2003,2004 I WANNA APPLY FOR 2001 ONLY

Accenture, Rolta, TCS,

2 10268

Dear Friends, Need your help for connecting APFC panel, Quotation : I have 2 No’s 1000 KVA Transformers, both transformers are having separate APFC panels, ( Tr-1,400KVAR, TR-2,450 KVAR) Now I want to stop One transformer, present load is 650Amps, Max, So One transformer is enough, I have switched OFF TR-1, but PF is not maintaining properly, its 0.5, So now I want to connect TR-2 APFC also in TR-1 Loads, Can any one answer for my Quotation with drawing, how to connect TR-2 APFC panel in TR-1 Loads,

L&T,

4 6444

phase association of 3PH L&T static CT meter is wrong. means 1PH & 1 CT connected properly and other 2 voltage and CT's inter changed. what would be the impact in the reading?

KSEB,

3 8639




Related Topics


Un-Answered Questions { CGI Perl }

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category