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

  • 19Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Introduction and Setup
Upon emerging from stasis, Ethic receives three surprises: a prison cell, complete amnesia, and a mysterious stranger named Hedge stuck in her window, who has come to help her save the
.

19 questions

  1. 1
    Upon emerging from stasis, Ethic receives three surprises: a prison cell, complete amnesia, and a mysterious stranger named Hedge stuck in her window, who has come to help her save the
    _____
    .
    Hint

    Consider the ultimate goal Hedge and Ethic share, which is larger than just escaping the prison.

    Answer

    world

  2. 2
    Hedge demonstrates his unique ability by turning his hand into a
    _____
    to begin the process of escaping from jail.
    Hint

    Think about the tool commonly used to open locks without a key.

    Answer

    lockpick

  3. 3
    Each lock in the prison features a red dial inside the keyhole that can be rotated to one of
    _____
    positions, numbered 1 through 100.
    Hint

    The text explicitly states the total number of possible positions for the dial.

    Answer

    100

  4. 4
    When the key spins the dial to the
    _____
    position and it stops there, the dial turns green and unlocks the door.
    Hint

    This refers to the correct or appropriate position, not a direction.

    Answer

    right

  5. 5
    Hedge requires
    _____
    instructions; for instance, 'spin the dial 5 positions forward' is acceptable, but 'pick the lock' is too vague.
    Hint

    Think about the level of detail needed for a robot to follow commands accurately.

    Answer

    specific

  6. 6
    A key programming concept that can help unlock the door efficiently is called a
    _____
    .
    Hint

    This concept involves repeating one or more instructions multiple times.

    Answer

    loop

  7. 7
    A loop can involve instructions that Hedge will
    _____
    a specified number of times, or until a condition is met.
    Hint

    This word means to repeat or perform again.

    Answer

    iterate

  8. 8
    One solution to opening the lock involves instructing Hedge to try every combination in
    _____
    , from 1 up to 100.
    Hint

    Think about trying each number one after another, in order.

    Answer

    succession

  9. 9
    The problem with laying out every combination individually is that it would be
    _____
    to write over 100 lines of code.
    Hint

    Consider how you would describe a task that is repetitive and overly long.

    Answer

    tedious

  10. 10
    A loop where you specify the number of times it repeats, such as checking the dial's color and spinning it forward 100 times, is called a 'for'
    _____
    .
    Hint

    The name of this type of loop directly includes the term 'loop'.

    Answer

    loop

  11. 11
    An even more efficient loop strategy involves Hedge spinning the dial one position at a time until it turns green and as soon as that happens, having him
    _____
    and open the door.
    Hint

    Consider what action should immediately follow the condition being met in an efficient loop.

    Answer

    stop

  12. 12
    The loop type that involves doing an action until a condition is met, like spinning the dial until it turns green, is called an 'until'
    _____
    .
    Hint

    This loop's name clearly indicates its conditional nature.

    Answer

    loop

  13. 13
    A similar, alternate approach to the 'until' loop is called a 'while' loop, where Hedge would turn the dial
    _____
    it's still red, then stop.
    Hint

    This type of loop continues an action as long as a certain condition remains true.

    Answer

    while

  14. 14
    After Hedge loops through the combinations, the cell door opens when the dial is set to
    _____
    .
    Hint

    The specific number for the first door's unlock position is given.

    Answer

    41

  15. 15
    After escaping the first cell, Ethic and Hedge must wait for the perfect moment in the guards’
    _____
    before making their escape.
    Hint

    Think about the scheduled movement or patrolling pattern of guards.

    Answer

    rotation

  16. 16
    Ethic chooses to run rather than hide inside a mysterious
    _____
    after escaping her cell.
    Hint

    This is described as a large, mysterious object.

    Answer

    crystal

  17. 17
    The second door requires Hedge to spin the dial all the way to
    _____
    before it unlocks, taking him longer than the first door.
    Hint

    The specific number for the outer door's unlock position is mentioned.

    Answer

    93

  18. 18
    Hedge explains that robots have taken over the world and only Ethic can set things right by collecting three powerful
    _____
    .
    Hint

    These are special, powerful objects needed for their mission.

    Answer

    artifacts

  19. 19
    After collecting the artifacts, Ethic must return to the
    _____
    machine, which is the giant crystal, to restore balance to the world.
    Hint

    This is the name of the machine that can set things right.

    Answer

    world

1 of 19
Question 1 of 19

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent