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
Is there any attempt system for microsoft technology papers?
What is the use of activex control in .net?
What are situations when you register .NET assembly in GAC ?
Explain how to produce an assembly?
What does stateless mean?
Explain the purpose of Remoting in .NET?
How many types of generations are there in a garbage collector?
What is the difference between a class and an object, and how do these terms relate to each other?
What is Event - Delegate? clear syntax for writing a event delegate
What is a formatter in .net?
Compare & contrast rich client (smart clients or windows-based) & browser-based web application
What is namespace in .net?
What is alias ? Is it used in .Net ?
Explain the code behind wors and contrast that using the inline style.
What are the types of jit?