Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


i have an array of 10 objects whose values are from 1-10
randomly inserted. i have deleted one array object.
tell me what is that value? write the logic of it.

Answers were Sorted based on User's Feedback



i have an array of 10 objects whose values are from 1-10 randomly inserted. i have deleted one arr..

Answer / rajani

Suren is right to some extent.if in case of random 10 number also. first take the sum of all numbers by running a loop. then delete a number . again run the loop and find the sum then subtract second from first .

Is This Answer Correct ?    5 Yes 0 No

i have an array of 10 objects whose values are from 1-10 randomly inserted. i have deleted one arr..

Answer / suren

its simple for guys 4m Engineering background.
if u have an idea with series of numbers, (n(n+1)/2)

first take the sum of all the objects in array, next
subtrat the sum of arrays after deletion of object. this
will give you the deleted object value.

1,2,3... 10; sum = 10(10+1)/2=55

suppose the value of object deleted is 6;

then sum of the array after deletion will be 49;

55-49=6 ANS:

Is This Answer Correct ?    12 Yes 8 No

Post New Answer

More Dot Net General Interview Questions

What is garbage collection in .net? Explain the garbage collection process?

0 Answers  


Please explain what do the terms “boxing” and “unboxing” mean?

0 Answers  


Can you create instance of a class which has private constructor?

0 Answers  


How to prepare parametrized (with more than one parameters) crystal report.pls tell me the code procedure, if any body can?

0 Answers  


Please explain what is immutability, what is it for and how is it codified?

0 Answers  


Write the .net syntax for 'for loop'?

0 Answers  


Explain what is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?

0 Answers  


Should I use readerwriterlock instead of monitor.enter/exit?

0 Answers  


How to convert a .NET object into COM operabililty?

0 Answers   Petranics Solutions,


Difference between assembly manifest & metadata assembly manifest

4 Answers   Ksb,


What?s different about a Windows service as compared to a regular application?

1 Answers  


Conceptually, what is the difference between early-binding and late-binding?

0 Answers  


Categories