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

In code behind class, name the type of code found. Is it the server side code or client side code?

1301


What does cli do?

972


What are the differences between com architecture and.net architecture?

1067


What are the different.net tools which you used in projects?

1004


What is the difference between task and thread in .net?

1090


object is physical and class is logical..here class is not occupying any memory as our definition of class but i got a question then the class where it stores if it is not occupying any memory....

2110


Is there a way to suppress the finalize process inside the garbage collector forcibly in .net?

917


What is lambda expressions in c#?

1182


How to implement getcommon method in class a? Are you seeing any problem in the implementation?

1082


What is reflection in microsoft .net context?

1040


Difference between value type & reference types ?

1100


What is close method? How its different from finalize and dispose?

1018


Is there any attempt system for microsoft technology papers?

1808


Please explain what is the difference between constants and read-only variables?

1139


Explain Creational design pattern in .NET?

1098