Chapter 6 Flashcards
(13 cards)
First-generation programming language
Machine language, hexadecimal notation
Second-generation programming language
Assembly language, uses mnemonic names instead of hexadecimal notation to make it easier to write. (Unique to specific machines)
Third-generation programming language
Uses high level primitives. (Machine independent)
Assembler
Converts assembly language to machine language
Compiler
Converts third generation language to machine language
Programming paradigms
- Functional – basic building block: functions.
- Object-oriented – basic building block: objects.
- Imperative – basic building block: procedures.
- Declarative, for example:
- logic programming – basic building block: logical formulas.
Primitive data types
- Integer: whole numbers; 8/16/32/64 bits; signed/unsigned.
- Float (real): numbers with fractions (scientific notation); 32/64 bits.
- Character: symbols; 8/16 bits.
- Boolean: true/false; (only 1 bit needed, but normally uses more)
Variable
named location in primary memory, which can store a value (of some specified type)
Literal
value of some (specified) type
Constant
named literal
Class
- template from which objects are constructed;
* includes descriptions of both variables and methods (functions).
Object
- active program unit containing both data and code;
* called an instance of the class, from which it is constructed
Features
- inheritance,
- encapsulation,
- polymorphism.