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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a try block have more than one catch block?

1119


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

1083


Please explain what is the difference between encrypting a password and applying a hashing?

969


What are code contracts?

1037


A developer company sends dlls to the client. Some client is not happy current functionality, so request some modification. Developer made some changes and send new dll to all clients. Some client is happy with old version, tell me minimal change to so that neither clients get affected?

937


Is .net 4.8 backwards compatible?

1009


What is interface and abstract class in .net?

1029


What do you mean by web service?

1295


What is .net and why it is used?

981


Can "this" be used within a static method?

1071


Example from .net. Integer & struct are value types or reference types in .net?

1006


Explain me what is a design pattern and what is it for?

1090


If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

2084


Explain .net framework overview?

1070


Explain how to load the contents of an xml file into an xmldocument object?

976