Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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


Please Help Members By Posting Answers For Below Questions

Which is faster dictionary or hashtable?

810


what happens if you inherit multiple interfaces and they have conflicting method names?

841


Explain how is the dll hell problem solved in .net?

806


What is session c#?

914


Define c# and list the features.

932


What is anonymous methods in c#?

1012


What is string concatenation?

921


What is interpolation in programming?

922


Why do we use struct in c#?

912


What is different between Implicit conversion and Explicit conversion in C#?

969


Can an interface extend a class c#?

899


What is xml serializer?

860


Write a program in C# for checking a given number is PRIME or not.

1023


what optimizations does the c# compiler perform when you use the /optimize+ compiler option?

1015


What is a hash table c#?

822