Week 1 - Ch 1 & 2 Flashcards
A program (aka a(n) __) is like a __ that tells the computer ‘what’s next’.
algorithm
recipe
Fundamentally, computers are
__/__ machines.
encoding/decoding
Everything that a computer represents (text, images, sounds, etc.) is an encoding of what?
Ones and zeros
Encoding schemes can be layered atop what?
encoding schemes
Who is Guido van Rossum?
Python inventor
Which is not a major implementation of Python?
A. CPython
B. Javathon
C. IronPython
D. Jython
B. Javathon
Which implementation of Python is the “classic” Python?
CPython
Which implementation of Python is best for utilization in the Microsoft .NET Framework (Common Language Runtime, CLR, virtual machines)?
IronPython
Which implementation of Python is best for Java Virtual Machines (JVM)?
Jython
T or F: Python includes its own IDE whereas R does not making Python a better choice.
Explain why or why not.
False. R includes IDE, not Python. But Python is still better because R can’t utilize other languages (like Python).
Why is Python better than SAS in informatics (2 reasons)?
SAS is excellent for business but not very good for science. SAS is also very expensive.
Why is Python better than SQL in informatics (3 reasons)?
- SQL is not a ‘full’ language
- SQL doesn’t handle non-structured data well
- R and Python can use SQL well, but SQL can’t use R or Python.
Which of the following is NOT a strength of Python?
1.Flexible
2. Dynamic
3. Utilizes other languages (although modules must be developed in-house).
4. Wide availability of software modules (prewritten, extensively tested, and free software)
5. New modules addressing new domains are continually being developed.
6. Works with a variety of third-party software libraries.
- Utilizes other languages (although modules must be developed in-house).
Python easily uses other languages.
Python supports multiple programing paradigms, meaning it is:
1. __: Data-centric approach using step-wise sequential processing promotes centralized architectures.
2. __: scope of data is elegantly managed (Based on Alonzo Church’s Lambda Calculus).
3. __: Focuses on the direct transformation of program state.
4. __: Uses encapsulation of data and methods to support extensible and reusable code.
Procedural
Functional
Imperative
Object-oriented
Guido van Rossum created Python in 1989 as an improvement upon this language.
ABC
What is the one bad thing about Python?
Version 3.x and above are not backward compatible with 2.x and below.
What’s the simplest way of working with Python?
command line.
A popular IDE is IDLE; what does IDLE stand for?
Eric Idle (of Monty Python).
An IDE is a step up from command line. What’s a step up from IDE (such as IDLE)?
IPython
Which Python development environment makes programming in Python much easier?
IPython (which we are supposedly using).
__ and __ are the two major IPython IDEs.
Canopy
Anaconda
__ boasts having a community that provides a variety of strong, academic resources (which is why we are using it).
Canopy (?????)
__ is a IPython-like facility that supports multiple languages.
Jupyter
One of the coolest and most powerful features of IPython is the IPython __.
It can be used as a way of capturing IPython programming sessions in a special format that can be saved and exchanged with colleagues.
Notebook
IPython Notebooks are __-based (displayed and executed within a standard browser).
Python Notebooks are also __ meaning colleagues can see and edit your IPython session with their own code, and can be executed in their browser.
HTML
dynamic
The spirit of what is alive with IPython Notebooks?
The Internet!
There are 2 major Canopy panes in a notebook: an upper and lower. What do each show?
The upper is the view pane used to create the notebook, built cell-by-cell.
The lower is an interactive command line pane that enables interaction with Python outside of the notebook.
Each IPython code cell consists of what 2 things?
Input and output element pairs.
What 2 entry modes exist in IPython cells?
Code or Markdown
Expressions are created by specifying one or more operations to be __ or __.
When an expression is evaluated, we say that it resolves to a __.
performed;
evaluated
value