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

String[] a = new string[10]

for(i=0; i<10; i++)
{
a[i] = i;
}

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

Ans: 1, 10, 11, 12

Answer Posted / suresh

ANS:11
VALUES ARE STORED IN ARRAY FROM 0.HERE STRING[].
HERE TOTAL I VALUE IS 10 AND IT IS STORED IN ARRAY INCLUDING
STARTING POINT.SO 10+1=11.SO

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between override and overload in a method?

1080


What is the use of design pattern?

963


Explain about the Common Language Runtime?

1042


When a Static Constructor called in .NET?

1021


What are situations when you register .NET assembly in GAC ?

1041


what is the keyword used for self reference?

2357


What are the different.net tools which you used in projects?

932


What are the different types of memory in .net?

1019


What is namespace in .net?

999


How is .net core cross platform?

1045


I want to serialize instances of my class. Should I use xmlserializer, soapformatter or binaryformatter?

1005


What is Ajax design pattern in .NET?

1019


Please explain what are an object and a class?

900


Explain clr, cts and cls?

1035


What does cil do?

952