Chapter Review Questions

Chapter Review Questions#

Note

Source: Adapted from the C# edition context review questions. Questions specific to Python (dynamic typing, REPL) are original additions.

  1. What is an algorithm?

    1. Give a one-sentence definition.

    2. Name three properties every algorithm must have.

  2. Python is called dynamically typed.

    1. Explain what that means in your own words.

    2. How does this differ from a statically-typed language like C# or Java?

  3. What is the Python interactive shell (REPL)?

    1. What does REPL stand for?

    2. Give one situation where using the REPL is more convenient than writing a script.

  4. What is abstraction in computer science?

    1. Define the term.

    2. Give one example of an abstraction you already use without thinking about it.

  5. A friend argues that computer science is really just programming. How would you respond?