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
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 |
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 |
What is the model role in Mvc architecture?
What is CLR? How it will work?
Explain the different types of proxy patterns?
How do you create threading in .NET? What is the namespace for that?
Explain the difference between vb and vb.net?
What are the differences between com architecture and.net architecture?
What are the different parts of an Assembly in .Net?
State the various features present in .NET?
How do you turn off cookies for one page in your site?
How to debug failed assembly binds?
What is difference between .net and .net core?
If we want to write a Windows service that cannot be paused, only started and stopped. How to accomplish that?