Test your technical skills online, appear in Virtual Interview and be ready for job!
Make friends on DotNetFunda.com and expand your network!
Winners

Announcements
Top Forums Author
Sat, 19-Apr-2014 Authors
All Time Authors

(Statistics delayed by 5 minutes)

# Logical Ability Test Question

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?

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

=> Scroll below for 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