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
What is the difference between convert and parse in c#?
What are the applications of c#?
What is c sharp language?
What is difference between a constant and read-only in C#?
Explain the features of an abstract class in net.
What is data types in c#?
What are the benefits of using generics in c#?
How do you specify a custom attribute for the entire assembly (rather than for a class)?
Explain how can you clean up objects holding resources from within the code?
can you declare an override method to be static if the original method is not static?
Can I do things in il that I can't do in c#?
How can I process command-line arguments?
What is method in c#?
Why do I get a "cs5001: does not have an entry point defined" error when compiling?
What is a type c#?