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

Is there any attempt system for microsoft technology papers?

1765


What is the use of activex control in .net?

1009


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

1047


Explain how to produce an assembly?

957


What does stateless mean?

1013


Explain the purpose of Remoting in .NET?

1086


How many types of generations are there in a garbage collector?

915


What is the difference between a class and an object, and how do these terms relate to each other?

970


What is Event - Delegate? clear syntax for writing a event delegate

1976


What is a formatter in .net?

993


Compare & contrast rich client (smart clients or windows-based) & browser-based web application

923


What is namespace in .net?

1017


What is alias ? Is it used in .Net ?

1074


Explain the code behind wors and contrast that using the inline style.

965


What are the types of jit?

1006