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

Answers were Sorted based on User's Feedback



String[] a = new string[10] for(i=0; i<10; i++) { a[i] = i; } How many heap object wi..

Answer / lavanya

10

Is This Answer Correct ?    7 Yes 2 No

String[] a = new string[10] for(i=0; i<10; i++) { a[i] = i; } How many heap object wi..

Answer / rak

11

Is This Answer Correct ?    4 Yes 3 No

String[] a = new string[10] for(i=0; i<10; i++) { a[i] = i; } How many heap object wi..

Answer / dennis

11.
1 for the String[]
and 1 for each individual "string" in the string array.(so total 10)

Is This Answer Correct ?    1 Yes 1 No

String[] a = new string[10] for(i=0; i<10; i++) { a[i] = i; } How many heap object wi..

Answer / shiva

1

Is This Answer Correct ?    2 Yes 3 No

String[] a = new string[10] for(i=0; i<10; i++) { a[i] = i; } How many heap object wi..

Answer / 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

String[] a = new string[10] for(i=0; i<10; i++) { a[i] = i; } How many heap object wi..

Answer / davamani

1

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Dot Net General Interview Questions

hai, about trading domain and need simple project on trading system. please help me...

0 Answers  


asp mean

3 Answers   CTS, TCS,


What application do you use to install a Windows service?

1 Answers  


What is Finalizer in .NET define Dispose and Finalize ?

0 Answers   MCN Solutions,


What is the raise event used for?

4 Answers   Wipro,


What are the different types of memory in .net?

0 Answers  


Differences between dll and exe?

0 Answers  


Explain code access security.

0 Answers  


How to write an MMC snap-in for my Windows service?

1 Answers  


Explain what is reflection in microsoft .net context?

0 Answers  


What is the difference between imperative and interrogative code?

0 Answers  


Difference between user groups and code groups

0 Answers  


Categories