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

Why does dllimport not work for me?

1107


Why do we need to call CG.SupressFinalize?

1052


Tell me the difference between value passing and address passing?

1296


Why do you need boxing in c#?

965


Explain the steps to create satellite assembly?

952


What is difference between destructor and finalize?

1000


What are floating point numbers?

1068


What is data annotation in c#?

982


How do I create multifile assembly?

987


How do you convert byte array to hexadecimal string, and vice versa?

1168


Any problem found in vs.et

1067


What is the difference between method parameters and method arguments. Give an example?

987


What is Named parameter in C#?

1046


Can we inherit private class in c#?

995


What are the 2 broad classifications of fields in c#?

971