DateTime[] dt = new DateTime[10]
for(i=0; i<10; i++)
{
dt[i] = DateTime(2008, 1, i+1)
}
How many heap object will be created for the above array.
Choose the correct answer below.
Ans: 1, 10, 11, 12
Answers were Sorted based on User's Feedback
Answer / garima kurmi
Correct answer is 1.As the heap is a pointer and stores the
type of the object not the value.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / rattan deep
answer is 11 because i+1 will give 11 value and in C# array
is considered as dynamic structure.
Is This Answer Correct ? | 0 Yes | 1 No |
Why DLL files are needed. & how They are Created in DOTNET?
Explain the difference between managed and unmanaged code?
How .NET is able to support multiple languages?
What is difference between system.string and system.stringbuilder classes?
Explain how garbage collection works?
What is the use of edititem template ingridview?
1 Answers C Squared Systems, Microsoft,
What are the similarities and difference between class and structure in .net?
What are the challenging issues you have faced in implementation project/Maintainance project in .net Functionality? How you have overcome that issue?
How to implement datagrid in.net? How would you make a combo-box appear in one column of a datagrid? What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for datagrid methods. What is the access specifier used for that methods in the code behind file and why?
Explain difference between panel and groupbox classes using .net?
What is common language specification (cls)?
How do you create threading in .NET? What is the namespace for that?