# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# + [markdown] id="view-in-github" colab_type="text"
# <a href="https://colab.research.google.com/github/jads-nl/intro-to-python/blob/develop/01_elements/06_review.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>

# + [markdown] id="IavdVVsTam5h"
# # Chapter 1: Elements of a Program (Review Questions)

# + [markdown] id="1PAZgXBqam5m"
# The questions below assume that you have read the [first <img height="12" style="display: inline-block" src="https://github.com/jads-nl/intro-to-python/blob/develop/static/link/to_nb.png?raw=1">](https://nbviewer.jupyter.org/github/webartifex/intro-to-python/blob/develop/01_elements/00_content.ipynb) and the [second <img height="12" style="display: inline-block" src="https://github.com/jads-nl/intro-to-python/blob/develop/static/link/to_nb.png?raw=1">](https://nbviewer.jupyter.org/github/webartifex/intro-to-python/blob/develop/01_elements/03_content.ipynb) part of Chapter 1.
#
# Be concise in your answers! Most questions can be answered in *one* sentence.

# + [markdown] id="0MZuhUzuam5n"
# ## Essay Questions 

# + [markdown] id="lVV6T-4-am5n"
# **Q1**: Elaborate on how **modulo division** might be a handy operation to know!

# + [markdown] id="ildl7ZMDam5o"
#  < your answer >

# + [markdown] id="SNLS8M9Oam5p"
# **Q2**: What is a **dynamically typed** language? How does it differ from a **statically typed** language? What does that mean for Python?

# + [markdown] id="FwDmFSq5am5q"
#  < your answer >

# + [markdown] id="UlLpFNstam5q"
# **Q3**: Why is it useful to start counting at $0$?

# + [markdown] id="hlWo-lAwam5r"
#  < your answer >

# + [markdown] id="WC4Wjd0aam5s"
# **Q4**: What is **operator overloading**?

# + [markdown] id="-wdnKKR4am5s"
#  < your answer >

# + [markdown] id="ICDcJkgTam5t"
# **Q5**: What are the basic **naming conventions** for variables? What happens if a name collides with one of Python's [keywords <img height="12" style="display: inline-block" src="https://github.com/jads-nl/intro-to-python/blob/develop/static/link/to_py.png?raw=1">](https://docs.python.org/3/reference/lexical_analysis.html#keywords)?

# + [markdown] id="TpS0tqQ8am5t"
#  < your answer >

# + [markdown] id="00hAyZlnam5u"
# **Q6**: Advocates of the [functional programming <img height="12" style="display: inline-block" src="https://github.com/jads-nl/intro-to-python/blob/develop/static/link/to_wiki.png?raw=1">](https://en.wikipedia.org/wiki/Functional_programming) paradigm suggest not to use **mutable** data types in a program. What are the advantages of that approach? What might be a downside?

# + [markdown] id="ALP4G_WIam5u"
#  < your answer >

# + [markdown] id="vf-MHPq9am5v"
# ## True / False Questions

# + [markdown] id="I0WdPkmPam5w"
# Motivate your answer with *one short* sentence!

# + [markdown] id="YF9EjtHZam5w"
# **Q7**: "**dunder**" refers to a group of Australian (i.e., "down under") geeks that work on core Python.

# + [markdown] id="S7rrPRReam5x"
#  < your answer >

# + [markdown] id="GV-ir2BRam5x"
# **Q8**: The **Zen of Python** talks about Indian genius programmers.

# + [markdown] id="dpD5s2wIam5y"
#  < your answer >

# + [markdown] id="dGWmHkvmam5y"
# **Q9**: When NASA famously converted some measurements to the wrong unit and lost a Mars satellite in 1999 (cf., [source](https://www.wired.com/2010/11/1110mars-climate-observer-report/)), this is an example of a so-called **runtime error**.

# + [markdown] id="Dyw-Txg5am5z"
#  < your answer >

# + [markdown] id="9qXPoOBnam5z"
# **Q10**: [PEP 8 <img height="12" style="display: inline-block" src="https://github.com/jads-nl/intro-to-python/blob/develop/static/link/to_py.png?raw=1">](https://www.python.org/dev/peps/pep-0008/) suggests that developers use **8 spaces** per level of indentation.

# + [markdown] id="5dRMjyCcam50"
#  < your answer >

StarcoderdataJupyterScriptsDedupFiltered