Write an expression which satisfies the following statements:
(i) Creates an object of type q
(ii) If m is null, returns n, otherwise returns m
(iii) If x and y are string types, it concatenates x and y
Answer Posted / sam
1)q objQ = new q();
2)string result = m??n;
3) if((typeof(string) == x.GetType()) && (typeof(string) == y.GetType() )
{
String.Concat(x,y);
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is sqladapter c#?
What is constructors, explain with syntax
What is an example of a delegate?
What is a three-tier application.
What is yield break in c#?
Whats an assembly? Describe the importance of assembly?
What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?
How can you prevent escaping on backslashes in C# with string definitions?
Why dataset is used in c#?
What is asynccallback c#?
In the page load event I assigned dropdownlist’s datasource property to a valid list. On the submit button click.. The same datasource property is coming as null. Why?
What is the difference between Decorator and Adapter pattern?
What is mvc firstordefault?
What is arraylist c#?
Describe ado.net?