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

  • 15Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Initial Situation

What are the three surprises Ethic experiences upon emerging from stasis?

15 questions

  1. 1

    What are the three surprises Ethic experiences upon emerging from stasis?

    Model answer

    Ethic's three surprises are waking up in a prison cell, having complete amnesia, and finding a mysterious stranger named Hedge stuck in her window bars.

    Explanation

    The introductory narrative directly states these three unexpected events Ethic encounters right after emerging from stasis, setting the initial predicament for the story.

  2. 2

    Who is Hedge, and what is his purpose in helping Ethic?

    Model answer

    Hedge is a mysterious stranger who has come to help Ethic save the world.

    Explanation

    Hedge introduces himself with the explicit purpose of assisting Ethic in her mission to 'save the world,' establishing his role early in the narrative.

  3. 3

    Describe the unique mechanism of the prison cell locks.

    Model answer

    Each lock has a red dial inside the keyhole that can be rotated to one of 100 positions. The correct position turns the dial green and unlocks the door.

    Explanation

    The text explains that the prison locks feature a red dial with 100 positions. Spinning the dial to the correct position causes it to turn green and unlocks the door, indicating a unique lock mechanism.

  4. 4

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

    Model answer

    Stealing keys from a guard is 'out of the question' because it is not a feasible or practical solution for Hedge, who has a better, more efficient idea.

    Explanation

    The narrative explicitly states that 'It would be out of the question to steal keys from a guard,' suggesting it's either too risky, impossible, or inefficient given Hedge's abilities.

  5. 5

    What is Hedge's specific ability that aids in opening locks?

    Model answer

    Hedge can turn his hand into a lockpick, which he uses to manipulate the lock dials.

    Explanation

    The text states that 'Hedge turns his hand into a lockpick,' indicating his unique physical ability to interact with the lock mechanism.

  6. 6

    What kind of instructions does Hedge require from Ethic to perform actions?

    Model answer

    Hedge requires specific instructions, such as 'spin the dial 5 positions forward,' as vague commands like 'pick the lock' are insufficient.

    Explanation

    The text clarifies that Hedge needs 'specific instructions' and provides examples of what works ('spin the dial 5 positions forward') versus what doesn't ('pick the lock' or 'try every combination').

  7. 7

    What is a 'loop' in programming, as explained by Hedge?

    Model answer

    A loop is one or more instructions that Hedge will iterate, or repeat, either a specified number of times (like a 'for' loop) or until a condition is met (like an 'until' or 'while' loop).

    Explanation

    The hint explicitly defines a loop as a programming concept involving repeating instructions, either a fixed number of times or until a certain condition is satisfied.

  8. 8

    Explain the concept of a 'for' loop using the lock-picking scenario as an example.

    Model answer

    A 'for' loop involves repeating an action a specified number of times. For the lock, Ethic could instruct Hedge to 'Check the dial’s color, then spin the dial forward once, for 100 repetitions' to find the correct position.

    Explanation

    The text defines a 'for' loop as a loop where you specify the number of repetitions. The example provided is to repeat checking and spinning the dial 100 times to test all positions.

  9. 9

    Describe how an 'until' loop would be used to open the prison door efficiently.

    Model answer

    An 'until' loop would have Hedge spin the dial one position at a time until it turns green. As soon as it turns green, he would stop and open the door, preventing unnecessary spins.

    Explanation

    The text describes an 'until' loop as an action repeated 'until a condition is met.' In this case, Hedge would spin the dial 'until it turns green,' stopping immediately when the condition is fulfilled.

  10. 10

    How does a 'while' loop differ from an 'until' loop in the context of opening the lock?

    Model answer

    A 'while' loop is similar to an 'until' loop, but it focuses on continuing an action while a condition is true, such as 'turn the dial while it’s still red,' then stopping.

    Explanation

    The text states that a 'while' loop is 'a similar, alternate approach' to an 'until' loop, specifying that it involves performing an action 'while' a condition (the dial being red) is true.

  11. 11

    What was the correct dial position to unlock Ethic's cell door?

    Model answer

    Ethic's cell door unlocked when the dial was set to position 41.

    Explanation

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

  12. 12

    What was the correct dial position to unlock the outer prison door?

    Model answer

    The outer prison door unlocked when the dial was set to position 93.

    Explanation

    The story mentions, 'The second door takes Hedge longer, requiring him to spin all the way to 93. But he gets it open,' confirming the position.

  13. 13

    According to Hedge, what is the state of the world outside the prison?

    Model answer

    Hedge explains that the world is in turmoil, with robots having taken over.

    Explanation

    Hedge reveals that 'The world is in turmoil: robots have taken over,' providing a critical piece of information about the external situation.

  14. 14

    What must Ethic do to set the world right, according to Hedge?

    Model answer

    Ethic must collect three powerful artifacts that are being used for nefarious purposes across the land and then return to the world machine (the giant crystal).

    Explanation

    Hedge outlines Ethic's mission: 'collect three powerful artifacts' and then 'return to the world machine—that giant crystal—to set things right.'

  15. 15

    What is the 'world machine' mentioned by Hedge?

    Model answer

    The 'world machine' is identified as the giant crystal that Ethic considered hiding inside.

    Explanation

    The text explicitly links the 'world machine' to 'that giant crystal,' clarifying its identity in the narrative.

1 of 15
Question 1 of 15

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent