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...

DateTime[] dt = new DateTime[10]

for(i=0; i<10; i++)
{
dt[i] = DateTime(2008, 1, i+1)
}

How many heap object will be created for the above array.
Choose the correct answer below.

Ans: 1, 10, 11, 12

Answer Posted / rattan deep

answer is 11 because i+1 will give 11 value and in C# array
is considered as dynamic structure.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain Different kinds of methods?

2089


Tell us the differences between an interface and an abstract class in .net?

1062


Explain what inheritance is, and why it's important?

957


How boxing and unboxing occures in memory?

1162


which method do you use to redirect the user to another page without performing a round trip to the client? How?

857


How do you generate a strong name?

1108


What is equivalent for regsvr32 exe in .net ?

1148


Is there any inbuilt tool or command provided by .NET to view the code inside the assembly?

982


What is COM Interoperability in .NET

1061


What is machine.config in .net?

1013


When should I use .net core?

1084


When we use windows api in .net is it managed or unmanaged code?

1067


What is the procedure to add assemly to gac to make it shared one?

974


What are the challenging issues you have faced in implementation project/Maintainance project in .net Functionality? How you have overcome that issue?

5096


State the differences between the dispose() and finalize().

1018