1. Home
  2. Explore
  3. Computer Science
  4. Lockpicking Puzzle

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Lockpicking Puzzle

  • 22Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Ethic's Awakening

What is the first of the three surprises Ethic encounters upon emerging from stasis?

22 questions

  1. 1

    What is the first of the three surprises Ethic encounters upon emerging from stasis?

    1. A

      She realizes that robots have taken over the world.

    2. B

      She discovers a mysterious crystal in her cell.

    3. C

      She meets a stranger who is stuck in her window.

    4. D

      She wakes up to find herself in a prison cell.

    Correct answer
    D

    She wakes up to find herself in a prison cell.

    Explanation

    Upon emerging from stasis, Ethic's first surprise is finding herself in a prison cell. The other surprises follow this initial discovery.

  2. 2

    What is the second surprise Ethic experiences immediately after stasis?

    1. A

      She discovers her ability to control Hedge.

    2. B

      She realizes she has complete amnesia.

    3. C

      She is confronted by a guard in her cell.

    4. D

      She finds a powerful artifact in her possession.

    Correct answer
    B

    She realizes she has complete amnesia.

    Explanation

    Ethic's second surprise upon waking is that she has complete amnesia, unable to recall her past or identity.

  3. 3

    What is the third surprise Ethic encounters after waking from stasis?

    1. A

      Robots have already taken over the entire world.

    2. B

      The world machine needs to be reset immediately.

    3. C

      She finds a key to her prison cell nearby.

    4. D

      A mysterious stranger is stuck in her cell window.

    Correct answer
    D

    A mysterious stranger is stuck in her cell window.

    Explanation

    The third surprise Ethic experiences is finding a mysterious stranger, Hedge, stuck squeezing through the bars on her window.

  4. 4

    What is the name of the stranger who comes to help Ethic save the world?

    1. A

      His name is Hedge, and he is stuck in the window bars.

    2. B

      His name is Keeper, and he guides her to the crystal.

    3. C

      His name is Helper, and he knows about the artifacts.

    4. D

      His name is Guardian, and he is a skilled lockpicker.

    Correct answer
    A

    His name is Hedge, and he is stuck in the window bars.

    Explanation

    The stranger's name is Hedge, and he appears stuck in Ethic's cell window, having come to help her save the world.

  5. 5

    What immediate objective must Ethic and Hedge achieve before they can save the world?

    1. A

      They must locate the world machine immediately.

    2. B

      They need to break out of jail as soon as possible.

    3. C

      They must find a way to avoid all the prison guards.

    4. D

      They have to collect three powerful artifacts first.

    Correct answer
    B

    They need to break out of jail as soon as possible.

    Explanation

    Hedge explains that before they can save the world, they first have to break out of jail.

  6. 6

    How does Hedge manage to pick locks in the prison?

    1. A

      He transforms his hand into a lockpick.

    2. B

      He uses his intelligence to bypass the mechanism.

    3. C

      He waits for Ethic to give him a stolen key.

    4. D

      He uses a special tool he found earlier.

    Correct answer
    A

    He transforms his hand into a lockpick.

    Explanation

    Hedge has the ability to turn his hand into a lockpick, which he uses to manipulate the prison locks.

  7. 7

    What is the specific mechanism of the locks inside the prison cells?

    1. A

      A blue lever that must be pushed to a specific position to unlock.

    2. B

      A red dial inside the keyhole with 100 numbered positions.

    3. C

      A green light that turns red when the door is unlocked.

    4. D

      A red button that needs to be pressed a certain number of times.

    Correct answer
    B

    A red dial inside the keyhole with 100 numbered positions.

    Explanation

    Each lock has a red dial inside the keyhole that can be rotated to one of 100 positions, numbered 1 through 100.

  8. 8

    What indicates that a prison door's lock has been successfully opened?

    1. A

      The prison door automatically swings open quietly.

    2. B

      The lock emits a distinct audible clicking sound.

    3. C

      The key for the cell vibrates vigorously.

    4. D

      The red dial inside the keyhole turns green.

    Correct answer
    D

    The red dial inside the keyhole turns green.

    Explanation

    When the dial is spun to the correct position, it turns green and unlocks the door, indicating success.

  9. 9

    Why is stealing keys from a guard not a viable option for Ethic and Hedge?

    1. A

      Guards constantly monitor the keys, making theft impossible.

    2. B

      The text states it would be out of the question to steal them.

    3. C

      The keys are too large for Hedge to manipulate easily.

    4. D

      They do not have enough time to plan such an operation.

    Correct answer
    B

    The text states it would be out of the question to steal them.

    Explanation

    The narrative explicitly states that 'it would be out of the question to steal keys from a guard,' making it an unfeasible approach.

  10. 10

    What kind of commands can Hedge successfully carry out?

    1. A

      Vague instructions like 'save the world efficiently'.

    2. B

      Broad requests like 'figure out what needs doing'.

    3. C

      General orders such as 'unlock this door quickly please'.

    4. D

      Specific instructions like 'spin the dial 5 positions forward'.

    Correct answer
    D

    Specific instructions like 'spin the dial 5 positions forward'.

    Explanation

    Hedge requires specific instructions; 'spin the dial 5 positions forward' is an example of a command he can execute, while vague commands are not suitable.

  11. 11

    What is the key programming concept suggested to help unlock the door efficiently?

    1. A

      A loop, which repeats instructions a specified number of times.

    2. B

      A subroutine, which defines smaller, reusable tasks.

    3. C

      A conditional statement, to evaluate multiple possibilities.

    4. D

      A function call, to execute a pre-defined sequence of actions.

    Correct answer
    A

    A loop, which repeats instructions a specified number of times.

    Explanation

    The hint provided identifies a 'loop' as a key programming concept that can help unlock the door, as it allows for repeated execution of instructions.

  12. 12

    What is a 'for' loop according to the explanation provided?

    1. A

      A command that causes an action to occur while a condition is true.

    2. B

      An instruction that repeats until a condition is met, then stops.

    3. C

      An instruction that continuously checks for a change in state.

    4. D

      A loop that specifies the number of times it will repeat a task.

    Correct answer
    D

    A loop that specifies the number of times it will repeat a task.

    Explanation

    A 'for' loop is described as a loop 'where you specify the number of times it repeats,' such as repeating an action 100 times.

  13. 13

    How can Ethic instruct Hedge using a 'for' loop to open a lock?

    1. A

      Ask Hedge to check the color, spin forward once, for 100 repetitions.

    2. B

      Command Hedge to find the correct number and then open the door.

    3. C

      Tell Hedge to spin the dial until the light turns green.

    4. D

      Instruct Hedge to keep spinning the dial while it is red.

    Correct answer
    A

    Ask Hedge to check the color, spin forward once, for 100 repetitions.

    Explanation

    One solution using a 'for' loop would be to instruct Hedge to 'Check the dial’s color, then spin the dial forward once, for 100 repetitions.'

  14. 14

    What is an 'until' loop in the context of opening the prison lock?

    1. A

      An action that stops only when a fixed number of repetitions are completed.

    2. B

      An action that repeats until a condition is met, then immediately stops.

    3. C

      An action that continuously repeats while a specific condition holds true.

    4. D

      An action that checks a condition once and then proceeds if it is false.

    Correct answer
    B

    An action that repeats until a condition is met, then immediately stops.

    Explanation

    An 'until' loop involves 'doing an action until a condition is met,' such as spinning the dial until it turns green and then stopping.

  15. 15

    What is the primary benefit of using an 'until' loop for the prison lock?

    1. A

      It provides a clear record of all the combinations Hedge tried.

    2. B

      It ensures that Hedge only tries the correct combination once.

    3. C

      It allows Hedge to try all 100 combinations without interruption.

    4. D

      It is more efficient as Hedge stops once the door unlocks.

    Correct answer
    D

    It is more efficient as Hedge stops once the door unlocks.

    Explanation

    An 'until' loop is more efficient because 'if the door unlocks on 1, he doesn’t need to cycle through all the rest of the numbers,' stopping immediately when the condition is met.

  16. 16

    What is a 'while' loop, as described in the context of the prison lock?

    1. A

      A loop that executes a set number of times regardless of condition.

    2. B

      A loop that performs an action until a condition is no longer met.

    3. C

      A loop that turns the dial while it is still red, then stops.

    4. D

      A loop that continues performing an action until a specified time.

    Correct answer
    C

    A loop that turns the dial while it is still red, then stops.

    Explanation

    A 'while' loop is described as an 'alternate approach' where Hedge would 'turn the dial while it’s still red, then stop.'

  17. 17

    At which position did the first prison cell lock open for Ethic and Hedge?

    1. A

      The lock for the first cell opened at dial position 100.

    2. B

      The lock for the first cell opened at dial position 1.

    3. C

      The lock for the first cell opened at dial position 41.

    4. D

      The lock for the first cell opened at dial position 93.

    Correct answer
    C

    The lock for the first cell opened at dial position 41.

    Explanation

    The narrative states, 'Hedge loops through the combinations, and the cell opens at 41.'

  18. 18

    At what dial position did the outer prison door unlock for Ethic and Hedge?

    1. A

      The outer prison door required Hedge to spin to position 41.

    2. B

      The outer prison door required Hedge to spin to position 1.

    3. C

      The outer prison door required Hedge to spin to position 100.

    4. D

      The outer prison door required Hedge to spin to position 93.

    Correct answer
    D

    The outer prison door required Hedge to spin to position 93.

    Explanation

    The second door, the outer prison door, 'requiring him to spin all the way to 93' before it opened.

  19. 19

    Why has Hedge rescued Ethic from prison?

    1. A

      To enlist Ethic to help collect powerful artifacts.

    2. B

      To assist Ethic in finding her lost memory.

    3. C

      To enable Ethic to set things right because robots have taken over.

    4. D

      To help Ethic escape from robot captors.

    Correct answer
    C

    To enable Ethic to set things right because robots have taken over.

    Explanation

    Hedge explains that 'The world is in turmoil: robots have taken over, and only Ethic can set things right.'

  20. 20

    What must Ethic and Hedge accomplish to set the world right?

    1. A

      They are required to reset the prison's security system.

    2. B

      They need to collect three powerful artifacts.

    3. C

      They must defeat the robots directly in combat.

    4. D

      They have to find the location of the world machine.

    Correct answer
    B

    They need to collect three powerful artifacts.

    Explanation

    To set things right, Ethic and Hedge 'need to collect three powerful artifacts that are being used for nefarious purposes across the land.'

  21. 21

    What is the final step Ethic must take after collecting the artifacts to set the world right?

    1. A

      She must confront the robot leader who initiated the takeover.

    2. B

      She must activate a hidden device to disable all robots globally.

    3. C

      She must return to the giant crystal known as the world machine.

    4. D

      She must bring the artifacts to Hedge for final processing.

    Correct answer
    C

    She must return to the giant crystal known as the world machine.

    Explanation

    After collecting the artifacts, Ethic must 'return to the world machine— that giant crystal— to set things right.'

  22. 22

    What decision does Ethic make when faced with the choice between hiding or cracking the outer door?

    1. A

      Ethic opts to crack the outer door and make a run for it.

    2. B

      Ethic chooses to wait for the guards to pass by.

    3. C

      Ethic decides to hide inside a mysterious crystal.

    4. D

      Ethic asks Hedge to choose the safest option for them.

    Correct answer
    A

    Ethic opts to crack the outer door and make a run for it.

    Explanation

    When faced with the choice, 'Ethic chooses to run,' meaning she opts to crack the outer door and escape.

Question 1 of 22
Question 1 of 22

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent