Mod 1 Flashcards
Complete set of known commands
Instruction List (IL)
Program written in a high level programming language
Source Code
A language must be correct in 4 senses:
Alphabetically - must be written in a recognizable script
Lexically - must use the dictionary
Syntactically - must follow rules
Semantically - must make sense
What is a Compilation
The Complier (or Translator) transforms the source program once (and after each amendment) by getting the machine code file. After, the program can be distributed worldwide (users d/n need complier to run it)
What is a Interpretation
Interpreter is a program that transforms the source program each time it is ran. The interpreter is needed to execute the source code.
2 ways of transforming a program from a high level programming language to machine language?
A compilation and interpretation
Advantages(3) and Disadvantages(3) of Compilation
Pros
1 translated code is usually faster
2 the end user may use the code without the compiler
3 the translated code is stored using machine language meaning it will stay secret
Cons
1 the compilation is a time consuming process
2 you may not be able to run the code after amendment
3 you have to have as many compilers as hardware platforms
Advantages (2) and Disadvantages (2) of Interpretation
Pros - you can run the code whenever - code is stored in the programming language (you don't compile your code for each architecture) Cons - slower to execute code - interpreter required to run the code
Python is…
Interpreted, objected-oriented and high level programming language with dynamic semantics, used for general purpose programming
IDLE acronym and parts:
Integrated Development and Learning Environment
editor - support you in writing code
console - launch and stop code
debugger - launch code step by step and allowing user to inspect it at each moment of execution