programming languages Online Quiz - 118
Description: programming languages Online Quiz - 118 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
What will the output of: Regex.Replace("01/02/03","([0-9]+)/([0-9]+)/([0-9]+)","$2/$1/$3");
Which regular expression matches email address [email protected]?
Whch of the following is used as word boundary in Regular Expression?
Where we can host WCF service?
WSHttpBinding uses SOAP 1.1.
What is the new activity available in .Net 3.5 for windows workflow which is used to expose workflow as service.
What are the various contracts available in WCF.
WCF have binding to support MSMQ.
What is the output ? main() { int i=8; printf("%d%d%d%d", i, i++, ++i, i); }
What is the output of the following C program? main() { int i=4,j=7; j = j || i++ && printf("YOU CAN"); printf("%d %d", i, j); }
What is the output of the following program ? main() { float a=1.1; double b=1.1; if (a==b) printf("Hai"); else printf("Hello"); }
What is the output of the following program ? main() { int a=10; { int a=100; { int a=1000; printf("%d", a); } printf("%d", a); } printf("%d", a); }
What is the output ?main(){ int i; for(i=0;i<10;i++); printf("%d", i); }
main() { int i=20, *k; k=&i; printf("\n%d %d", i, k); ++*k; printf("\n%d %d", i, k); (*k)++; printf("\n%d %d", i, k); } Let the output of first print statement is 20 1000. What is the output of 2nd and third print statements ?
What is the output ? main() { int x=2000, *p, y = 200; p = &y; x = x/*p; printf("%d", x); }
What is the output ?main(){ int a[5]={1,2,3,4,5}; a[7] = 23; printf("%d", a[7]);}
main(){ int i=5; char c; scanf ("%d", &c); printf("Here"); printf ("%d ", i);}For scanf in standard input the input is given as 63. then what will be displayed in the standard output ?
- public class Test { 2. public static void main(String args[]) { 3. class Foo { 4. public int i = 3; 5. } 6. Object o = (Object)new Foo(); 7. Foo foo = (Foo)o; 8. System.out.println(“i = “ + foo.i); 9. } 10. } What is the result?
Which one cause a compiler error? (Choose two) a. float f2[] = new float[]; b. float[] f1 = new float[3]; c. float f3[] = new float[3]; d. float f4[] = new float[] { 1.0f, 2.0f, 3.0f};
- int i =1,j =10; 12. do { 13. if(i++> --j) { 14. continue; 15. } 16. } while (i <5); 17. System.out.println(“i = “ +i+ “and j = “+j); What is the result?