click below
click below
Normal Size Small Size show me how
Compsci #7
From 7 [programming languages]
| Term | Definition |
|---|---|
| Early generation language | Machine language, Assembly language, Machine dependent language |
| Machine language | Ex. Vole |
| Machine dependent language | The code only works on that machine |
| Assembly language | Mnemonic system for representing machine instructions. Machine-dependent. Converted to machine language by an assembler |
| Variables/Identifiers | Descriptive names for memory locations, chosen by the programmer |
| Third generation language | Uses high-level primitives. Each primitive corresponds to a sequence of machine language instructions. Converted to machine language by the compiler. (Mostly) machine independent. Ex. Fortran, Cobol |
| High level language abstractions | Simple abstractions, Complex abstractions, Esoteric abstractions |
| Simple abstractions | Constants, literals, variables |
| Complex abstractions | Statements, expressions, control |
| Esoteric abstractions | Procedures, modules, libraries |
| Procedural units | Also known as functions |
| Language implementation | The process of converting a program written in a high-level language into a machine-executable form |
| Lexical Analyzer | Recognizes which strings of symbols represent a single entity or token |
| The parser | Groups tokens into statements, using syntax diagrams to make parse trees |
| The code generator | Constructs machine-language instructions to implement the statements |
| Object | Instance of a class. Active program unit containing data and procedures |
| Class | A template from which objects are constructed |
| Encapsulation | Restricting access to the internal components of an object |
| Inheritance | Allows new classes to be defined in terms of previously defined classes |
| Polymorphism | Allows methods to take multiple forms, behaving differently based on the object calling it (relates to overriding) |