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
Answer Posted / sarang
a and c are right.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How do I register my code for use by classic com clients?
How do you prevent a class from being inherited?
Are string objects mutable or immutable?
What is executescalar in c#?
What is a .exe extension files? How is it similar to .dll extension files?
How to open a new form on button click in Windows forms?
What is an object and a class?
What is session state in asp net c# with example?
What is c# commonly used for?
Can we override interface method?
What I can do with c#?
What is c# in asp net?
Can a string be null c#?
What is a three-tier application.
What do you mean by shared assembly?