ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net General
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
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
 Question Submitted By :: Anitha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
Correct answer is 1.As the heap is a pointer and stores the 
type of the object not the value.
 
Is This Answer Correct ?    2 Yes 0 No
Garima Kurmi
 
  Re: 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
# 2
10
 
Is This Answer Correct ?    2 Yes 2 No
Shiva
 
 
 
  Re: 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
# 3
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
Rattan Deep
 

 
 
 
Other Dot Net General Interview Questions
 
  Question Asked @ Answers
 
What security mechanisms to enforce for Authenticating and authorizing the users?  1
What is the standard you use to wrap up a call to a Web service  1
What does SCM do?  1
what is the difference between early binding and late binding in .net? Satyam2
How do you turn off cookies for one page in your site?  1
what is the difference between class and structures?  2
What?s the Unix name for a Windows service equivalent?  1
Can we Classic ASP,.Net 1.0, .Net 1.x and .Net 2.0 installed on the same system? Value-Labs1
Directcast(123.34,integer) - should it throw an error? Why or why not? Wipro1
Explain the .NET architecture. Scandent3
What are The Main Difference Between Client-server Based Applications and Web Based Applications CTC1
Give An example of a ctype and directcast. Wipro2
What is Assembly? Wipro1
How many types of exception handlers are there in .NET?  1
Explaing your project. Deloitte1
What is view state? TCS4
What are remotable objects in .NET Remoting?  1
what is the use of "mustinherit" keyword?  2
How .NET is able to support multiple languages?  3
Write an StoredProcedure to get the values of a column within a date range. Deloitte1
 
For more Dot Net General Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com