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 root class in .net?

1197


What is the intermediate language between asp and asp.net1.0?

2080


Explain about managed heap?

1158


Tell us the difference between managed and unmanaged code?

1071


What is implement a generic action in webapi?

1298


What is the difference between asp.net and asp?

1259


What is the advantage of packaging over xcopy in .net?

1107


Please explain when should you use .net web forms over asp.net mvc?

1055


What is connection pooling and how do you make your application use it?

1083


Explain me how does linq work?

1253


What is Entity Relationship Model in .NET?

1149


what will do to avoid prior case?

1119


Do you know what is .net standard?

1182


Dynamic Fonts

1990


What are the deferred execution and the immediate execution in linq?

1069