Suppose there are three light switches outside a room. Inside is a single light bulb, controlled by one of the three switches. You need to determine which switch operates the bulb. You can turn the switches on and off as many times as you wish (they are all off to begin with), but may only enter the room once. There is no one there to help you. The door to the room is closed, and there are no windows, so you cannot see inside. How can you discover which switch operates the bulb?
Submitted by: AdministratorDo the following steps:
☛ 1. Turn ON two switches, and leave one OFF.
☛ 2. Wait a few minutes.
☛ 3. Turn one switch from ON to OFF. One is now ON and two are OFF
☛ 4. Enter the room. - If the light is ON, it is controlled by the switch you left ON. - If the light bulb is OFF, touch it. If it is warm it is controlled by the switch you turned ON and OFF. If it is cold, it is controlled by the switch you never turned on.
Submitted by: Administrator
☛ 1. Turn ON two switches, and leave one OFF.
☛ 2. Wait a few minutes.
☛ 3. Turn one switch from ON to OFF. One is now ON and two are OFF
☛ 4. Enter the room. - If the light is ON, it is controlled by the switch you left ON. - If the light bulb is OFF, touch it. If it is warm it is controlled by the switch you turned ON and OFF. If it is cold, it is controlled by the switch you never turned on.
Submitted by: Administrator
Read Online CSS Job Interview Questions And Answers
Top CSS Questions:
☺ | Describe a time when you anticipated potential problems and developed preventive measures? |
☺ | Describe a time when you had to help a coworker out that did not directly benefit you? |
☺ | What do you feel you deserve to be paid? |
☺ | What types of personalities do you work with best? |
☺ | Where do you see yourself professionally five years from now In CSS? |
Top Web Developer Categories
☺ | Bootstrap Interview Questions. |
☺ | Front End Web Developer Interview Questions. |
☺ | Typography Interview Questions. |
☺ | Laravel PHP Developer Interview Questions. |
☺ | Junior Developer PHP Interview Questions. |