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 / 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 |
What is a di class?
Explain different properties of object oriented systems.
Can you override private virtual methods?
What the different phase/steps of acquiring a proxy object in webservice?
what is class libraries?
What happens in synchronisation?
How does bubble sort work?
how encapsulation is implemented in c#
What is a virtual property. Give an example?
Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?
Is it possible to have different access modifiers on the get/set methods of a property?
Define parsing? Explain how to parse a datetime string?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)