0

programming languages Online Quiz - 118

Description: programming languages Online Quiz - 118
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

Which regular expression matches email address [email protected]?

  1. \[email protected]\w+.[\w]{3}

  2. ^(([A-Za-z0-9]+_+)|([A-Za-z0-9]+-+)|([A-Za-z0-9]+.+)|([A-Za-z0-9]+++))[A-Za-z0-9][email protected]((\w+-+)|(\w+.))\w{1,63}.[a-zA-Z]{2,6}

  3. [\w.-][a-zA-Z0-9_]@[\w.-][a-zA-Z0-9].[a-zA-Z][a-zA-Z.]*[a-zA-Z]

  4. All of above


Correct Option: D

Where we can host WCF service?

  1. Windows service

  2. WAS

  3. None of above

  4. Both 1 and 2


Correct Option: D

What is the new activity available in .Net 3.5 for windows workflow which is used to expose workflow as service.

  1. Send Activity

  2. Web Service Input Activity

  3. Receive Activity

  4. None of These


Correct Option: C
  1. Service contract

  2. Operation contract

  3. Method contract

  4. Data Member Contract

  5. Message Contract

  6. Fault Contract


Correct Option: A,B,E,F

WCF have binding to support MSMQ.

  1. True

  2. False


Correct Option: A

What is the output ? main() { int i=8; printf("%d%d%d%d", i, i++, ++i, i); }

  1. 881010

  2. 89910

  3. 891010

  4. 10998


Correct Option: D

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); }

  1. 5 7

  2. 4 7

  3. 5 1

  4. 4 1


Correct Option: D

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"); }

  1. Compilation error-Type mismatch

  2. Hai

  3. Hello

  4. Run time error


Correct Option: C

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); }

  1. 100010001000

  2. 100010010

  3. 101001000

  4. 010010001


Correct Option: B

What is the output ?main(){ int i; for(i=0;i<10;i++); printf("%d", i); }

  1. 10

  2. 11

  3. Compilation error-Null can not be there after for

  4. Infinite loop


Correct Option: A

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 ?

  1. 21 1000 21 1002

  2. 21 1000 Garbage_value 1002

  3. 21 1000 22 1002

  4. 21 1000 22 1000


Correct Option: D

What is the output ? main() { int x=2000, *p, y = 200; p = &y; x = x/*p; printf("%d", x); }

  1. 10

  2. Garbage value

  3. 100

  4. Compilation error


Correct Option: D

What is the output ?main(){ int a[5]={1,2,3,4,5}; a[7] = 23; printf("%d", a[7]);}

  1. 23

  2. Garbage Value

  3. 0

  4. Compilation-Array out of boundary


Correct Option: A

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 ?

  1. 63 Here5

  2. 3 Here5

  3. 63 Here0

  4. 3 Here0


Correct Option: C
  1. 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?
  1. i = 6 and j = 5

  2. i = 5 and j = 6

  3. i = 5 and j = 5

  4. i = 6 and j = 6


Correct Option: B
- Hide questions