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

what do mean by object oriented programming

7 Answers  


Hi all, Please mail me the syllabus for KPTCL exam for computers. mail id: is.shek@gmail.com Thanks in advance

1 Answers  


The book "cricket my style" is written by 1. Sunil gavaskar 2. Sachin tendulkar 3. Kapil dev 4. K. Srikant

6 Answers   IBM,


what if terrorist attack sastra university..will nikil saves the university or not..

0 Answers   Microsoft,


canu sent me IIT entrance question for all subject

0 Answers  






who is the current cheif of army staff

0 Answers  


how much charge on one electron?

4 Answers   Air Force, Indian Air Force,


what is specific obtical rotation of sugar?

0 Answers   MPS Techologies,


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  


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

2 Answers   NIELIT,


can u make this program simpler

0 Answers  


sir, i need rrb section engineer(mechanicak) solved paper- 2002 to 2008. my email id ashok_charania@yahoo.co.in

1 Answers  


Categories