Consider the following pieces of C# code:
a. interface I1 {/*......*/}
interface I2 {/*......*/}
struct Point : I1,I2 {/* ..... */}
b. struct Book{
int bookId;
struct Book b;
}
c. using M=Mystruct;
struct MyStruct{
int id;
}
class MyClass{
static void Main(string[] args){
M m = new M();
}
}
d. struct Sample{
Sample ref x;
}
Which of the above are correct?
Choose one of the options below.
a, c and d are right
a only right
a and c are right
d only wrong
None of the listed options
Answers were Sorted based on User's Feedback
How does bitwise work?
What is the difference between c and c# programming?
What is the use of thread join in c#?
1. What is lazy loading? 2. What is delay signing? 3. How to transfer view object to presenter in MVP? 4. How to create a generic class? 5. What is Ajax object? 6. What is explicit interface implementation? 7. I1, I2 interfaces have same methods (say PrintName) explicitly implemented in class C1. Now how to call PrintName method from I1? 8. I have a list of Customers. List the customer with maximum orders using LINQ.
Which namespaces are necessary to create a localized application?
What is abstract class ?
Where do we use serialization in c#?
What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?
Is nullable type c#?
what are some characteristics of an array?
Where is the output of TextWriterTraceListener redirected?
1 Answers Rolta, Siebel Systems,
How to Show Message box in Metro Style App?