Test your technical skills online, appear in Virtual Interview and be ready for job!
Twitter Twitter LinkedIn YouTube Google
Be Interview ready ! | Search
Make friends on DotNetFunda.com and expand your network!
Winners

Win Prizes

Announcements
Like us on Facebook
Sponsor
Top Forums Author
Sat, 19-Apr-2014 Authors
Riyazhaider
10
All Time Authors
Jayakumars
3930
Karthikanbarasan
3455
Chvrsri
3140

Latest members | More ...


(Statistics delayed by 5 minutes)

Logical Ability Test Question

Shantanupatel
Posted by Shantanupatel under Interview Questions on 2/6/2012 8:11:30 AM | Points: 10 | Views : 3279 | Status : [Member] | Replies : 1
Question:
You have an array of index 0-98
You have random function that inserts random number in the array between (1-100)
The validation in the random function is that none of the number can be inserted twice(i.e. unique number would be inserted in the array)
Find the missing number?

Answer:
Sum up the number between 1-100 (You will get a value X)
Sum up the number of the inserted array( You will get a value Y)

Missing Number = X-Y

For Example:
Suppose i have array of index 0-4
Suppose i have numbers from 1-5 (i.e the sum of numbers between 1-5 is 15)
Suppose i have 1,4,5,2 in the my array. The sum of inserted number is 12

Missing Number = 15-12 =3

Happy Thinking!

Shantanu

Reply | Reply with Attachment

=> Scroll below for responses


Comments or Responses

Posted by: Rocknisha on: 7/28/2012 [Member] Starter | Points: 25

Here is the collection of some really nice logical & aptitude test questions for interview or quiz preparation
http://howtofreak.com

[url=http://howtofreak.com]How to[/url],How to freak

Shantanupatel, if this helps please login to Mark As Answer. | Alert Moderator


Login to post response.

Comments / Responses
Select text & click toolbar to format. Formatting appears in viewmode only. HTML Tags are not allowed.
Bold Italic Underline Paragraph Title Code  Link 
 Wait ... Processing ..... please wait.

Found interesting? Add this to: