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 is the colour of dry silica

1 Answers  


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

2 Answers   Satyam,


what is the measuring principle of o2&co

0 Answers  


4 persons K L M N are initially at 4 corners of a square of side d. each person starts movin with uniform speed v such that K always moves directly towards L, L towards M, M towards N, and N towards K, at what time will they meet???

3 Answers  


1.why there is 365 or 366 days in a year.? 2.and also why there is 30 days in a month? 3. and 23 hours 56 minutes 4 second in a day ? 4 . why there is 28 or 29 days in February?

0 Answers  






3_3_3_3_3=31???????

1 Answers  


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

1 Answers  


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

1 Answers  


what is specific obtical rotation of sugar?

0 Answers   MPS Techologies,


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

2 Answers   NIELIT,


What is the qualification/illegblity And When fillup forms

1 Answers  


APTITUDE LOGICAL REASONING WRITTEN TEST OF COGNIZANT CHENNAI

1 Answers   Cognizant, CTS,


Categories