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

Difference between class and interface in .net?

803


What do you mean by web service?

896


Describe the use of following com+ services jit activation, queued components, object pooling.?

755


What is the difference between boxing and unboxing?

765


What are the differences between com architecture and.net architecture?

801


Is .net capable of supporting multi-thread?

782


What relationship is between a process, application domain, and application?

794


What is COM Interoperability in .NET

883


Explain Different kinds of methods?

1864


Which namespace is used to support multithearding in .NET?

793


Name the classes that are introduced in the system.numerics namespace.

859


Can I write my own .net host?

825


What is the difference between encrypting a password and applying a hashing?

962


Difference between abstract class and interface in .net?

818


Tell me about secure socket layer? How to make use of the technology?

778