Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Operating System (OS) Interviews:BSDBulnexCompiler Linker LoaderDisk Operating System (DOS)MAC Operating SystemNative iOS EngineerOperating System (OS)OS Data StructuresOS General ConceptsOS Memory ManagementOS MultithreadingOS Process ManagementOS X Mountain LionRTOSShell ScriptingSolarisSolaris AdminSolaris CommandsSymbianUnix CommandsUNIX Operating SystemUnix Socket ProgrammingUnix/Linux programmingVxWorksWindowsWindows 7Windows AdministratorWindows CEWindows Programming
Copyright © 2018. All Rights Reserved
2nd shift linux Question:
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
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.