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
Difference between class and interface in .net?
What do you mean by web service?
Describe the use of following com+ services jit activation, queued components, object pooling.?
What is the difference between boxing and unboxing?
What are the differences between com architecture and.net architecture?
Is .net capable of supporting multi-thread?
What relationship is between a process, application domain, and application?
What is COM Interoperability in .NET
Explain Different kinds of methods?
Which namespace is used to support multithearding in .NET?
Name the classes that are introduced in the system.numerics namespace.
Can I write my own .net host?
What is the difference between encrypting a password and applying a hashing?
Difference between abstract class and interface in .net?
Tell me about secure socket layer? How to make use of the technology?