In c#, a statement "a?b:c" means?

Answers were Sorted based on User's Feedback



In c#, a statement "a?b:c" means?..

Answer / ram

1.1 In C#, a statement “a ? b : c” means
A) If a is true, returns the value of b, otherwise c
B) If b is true, returns the value of a, otherwise c
C) If a is true, returns the value of c, otherwise b
D) If c is true, returns the value of b, otherwise a

1.2 In C#, a statement “a ?? b” means
A) If a is null and b is null, returns a
B) If a is null, returns a, otherwise returns b
C) If a is null, returns b, otherwise returns a
D) None of the above

Is This Answer Correct ?    11 Yes 4 No

In c#, a statement "a?b:c" means?..

Answer / helper

a = answer b if not null else c

Is This Answer Correct ?    2 Yes 7 No

Post New Answer

More IIT JEE Interview Questions

int x=10,y=6 so guess output of x++/y

2 Answers   Satyam,


what is the colour of dry silica

1 Answers  


ARE YU MAD FOR IIT JEE?

1 Answers   IIT,


what is the difference in using 440V ac with 50 HZ and 110 V ac with 60 Hz

0 Answers   JK Associates, TATA,


write a program to flip the 2nd bit of the 32 bit number

1 Answers  






3_3_3_3_3=31???????

1 Answers  


hello sir iam studying in diploma in the andharapradesh. but my hope is do the engineering in the delhi.iam what type of enternce test is do the face.please tell me.

0 Answers  


Find Square root(2+Sqrt(2+Sqrt(2........

3 Answers  


We need similar questions paper to get prepared for entrance exeam

0 Answers   Toyota,


Write a C++ program using user defined functions to reverse every word of a string: eg:My name is should output yM eman si

1 Answers  


I wrote letters to four different people and wrote their addresses on four envelopes. But while inserting each letter into an envelope. I was careless. Either I put three letters in right envelopes, or I put two letters in right envelopes or I put one letter in wrong envelope, what did I do?

1 Answers   Patni,


who is the current cheif of army staff

0 Answers  


Categories