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

Answer Posted / shiva

10

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe session handling in a webform, how does it work and what are the limitations?

666


What is managed code in .NET?

719


Explain about the Common Language Runtime?

706


Explain soap and xml?

651


Can I write my own .net host?

706






What is Ajax design pattern in .NET?

734


Explain the difference between garbage collections in .net 4.0 and earlier versions?

626


Please explain what are an object and a class?

601


What is il and c#?

664


Is .net core free?

676


Write a program to create a user control with name and surname as data members and login as method and also the code to call it.

600


What is machine.config in .net?

667


Can "this" be used within a static method?

675


What is static constructor, when it will be fired? And what is its use?

618


Is Driver Script any how related to AOM?

723