DV Module 1 Flashcards
What Elements make up a language?
Alphabet: a set of symbols that build words
Lexis: A set of words that language offers its users
Syntax: A set of rules to follow to create a sentence
Semantics: A set of rules that determine weather a phrase makes sense. the program has to make sense.
What is IL
An alphabet of a machine language
Python is an example of two different computer programming languages
High-level programming language
Interpreted language
A program written in a programming language is called:
and the File containing it is called
Source Code
Source File
Two way to transfroming a program from a high-level programming language into machine language:
COMPILATION - the source program is translated once (however, this act must be repeated each time you modify the source code) by getting a file (e.g., an .exe file if the code is intended to be run under MS Windows) containing the machine code; now you can distribute the file worldwide; the program that performs this translation is called a compiler or translator;
INTERPRETATION - you (or any user of the code) can translate the source program each time it has to be run; the program performing this kind of transformation is called an interpreter, as it interprets the code every time it is intended to be executed; it also means that you cannot just distribute the source code as-is, because the end-user also needs the interpreter to execute it.
In what order does an Interpreter read code
Top to bottom
Right to left
it will stop if there is an error in the code and stop reading it if all seems well in the code it will try to execute it.
Interpreted language are often called
Scripting Languages
well the programs encoded in them are called Scripts
what is Python?
Python is a widely-used, interpreted, object-oriented, and high-level programming language with dynamic semantics, used for general-purpose programming.
Who made Python?
Guido van Rossum
Different types of Python codes
Cpython, Cython, Jython and PyPy/ RPython
IDLE
Integrated Development and Learning Environment
a complete set of know commands is called:
an instruction list
What is CPython?
The default implementation of the python, written in the C language
What do you call a tool that lets you launch your code step-by-step and inspect it at each moment of execution.
a debugger
what will
prin (“Goodbye!”)
output
It will generate and error message