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 / niloy roy
Only a is the right
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Which is faster dictionary or hashtable?
what happens if you inherit multiple interfaces and they have conflicting method names?
Explain how is the dll hell problem solved in .net?
What is session c#?
Define c# and list the features.
What is anonymous methods in c#?
What is string concatenation?
What is interpolation in programming?
Why do we use struct in c#?
What is different between Implicit conversion and Explicit conversion in C#?
Can an interface extend a class c#?
What is xml serializer?
Write a program in C# for checking a given number is PRIME or not.
what optimizations does the c# compiler perform when you use the /optimize+ compiler option?
What is a hash table c#?