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 |
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
what is managed data and managed code?
When we go for html server controls and when we go for web server controls?
questions on various scenarios on exception handling? like for example.... try { a; b; ...exception occurs here...what happens...will catch execute or will finally execute...will c execute c; } catch { a; b; c; } fianlly { a; b; }
Explain what is reflection in microsoft .net context?
where are connection strings stored?
Explain about managed heap?
Explain the difference between the while and for loop. Provide a .net syntax for both loops?
Explain me why do we use msmq?
What are the security policy levels in .Net
What is Event - Delegate? clear syntax for writing a event delegate
What is an assembly? What are the different types of assemblies?