There is a school with 100 students and correspondingly 100 lockers, all of which start off closed. The first student opens every locker and the second students closes every other locker starting with the second (2,4,6...etc..) . The 3rd student changes the state of the lockers numbered (3,6,9.. etc.). The fourth student changes the state of the lockers numbered (4,8,12.. etc..).. This continues until all the 100 students passes along the lockers.. when all the 100 student is done which locker is closed and which locker is in open condition?
Answer Posted / preethy
all the perfect squares
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
A man walks around a rectangle. The time taken by him in travelling the length is twice as taken in travelling the breadth of the rectangle. If the perimeter of the rectangle is 300 mts, what is the area of the rectangle?
The cost of 16 articles is equal to sell price of 12 articles. The gain percent is ?
500 men are arranged in an array of 10 rows and 50 columns . ALL tallest among each row are asked to fall out . And the shortest among THEM is A. Similarly after resuming that to their original positions that the shortest among each column are asked to fall out. And the longest among them is B . Now who is taller among A and B ?
A farmer built a fence around his 17 cows, in a square shaped region. He used 27 fence poles on each side of the square. How many poles did he need altogether?
chief : tribe :: governor :
How many 1's are there in the binary form of 8*1024 + 3*64 + 3
A plane goes from Chicago to Columbus and then comes back. It takes the same time to travel in either ways. It leave Chicago early in the morning 0644 LOCAL TIME and reaches the destination Columbus at 0849 LOCAL TIME. In the same evening it leave Columbus at 1625 hrs LOCAL TIME and reaches the destination at 1638 LOCAL TIME. Find the time that the plane takes to travel either way?
Which of the following does multithreading allow? A. several transactions that require the same program to use one copy of the program. B. many tasks to be allocated to the terminal. C. an audit trail of all files records from all files updated by a particular application
A son and father goes for boating in river upstream . After rowing for 1 mile son notices the hat of his father falling in the river. After 5min. he tells his father that his hat has fallen. So they turn around and are able to pick the hat at the point from where they began boating after 5 min.Tell the speed of river.
Given 10 alphabets out of which 5 are to be chosen. How many words can be made with atleast one repetition.
Now i am doing RHCE (Red Hat Certified Engineer). Please give some interview questions of linux.
What is the selling price of a car? If the cost of the car is Rs.60 and a profit of 10% over selling price is earned.
Gaurav buys milk at Rs. 60 per litre, adds water to it and then sells it at Rs. 75 per litre. What should be the ratio of milk to water to get a profit of 37.5%?
Make a square by drawing only one line
in how many ways can a lock be opened if that lock has three digit number lock if the last digit is 9 and sum of the first two digits is less than or equal to the last digit. numbers are from 0-9