Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
21 Cards in this Set
- Front
- Back
Imperative Programming
|
Program & variables stored together. Program contains series of calculations, assigns values to variables. Procedural abstraction.
(Cobol, Fortran, C, Ada, Perl) |
|
OOP
|
Collection of objects that pass messages to transform state. Object classification, inheritance, message passing.
(Smalltalk, C++, Java, C#) |
|
Functional Programming
|
Collection of mathematical functions. Maps input domains to output ranges.
(LISP, Scheme, Haskell, ML) |
|
Logic/Declarative Programming
|
Declares what outcome the program should accomplish, rather than how to accomplish it. "Rule-based" language.
(Prolog) |
|
Simplicity and Readability
|
1)Clarity of expression/small instruction set (Basic, Pascal)
2)Minimize keystrokes or amount of memory compiler requires 3)Less feature multiplicity (x++, ++x, x=x+1) same with subtle differences 4)Less usage multiplicity (operator overloading bad) |
|
Clarity about Binding
|
Language should be clear about binding times for each element to its properties.
(Simplicity and Readability) |
|
Language Definition Time
|
Basic data types are bound to reserved words. (Integers-->int, real numbers-->float)
|
|
Language Implementation Time
|
When compiler is written, values bound to machine representations. (Size of int determined when?)
|
|
Program Writing Time
|
Variable names bound to types.("int x")
|
|
What are the six binding times?
|
1) Language Definition Time (LDT)
2) Language Implementation Time (LIT) 3) Program Writing Time (PWT). 4) Compile Time (CT) 5) Program Load Time (PLT) 6) Program Run Time (PRT) |
|
Compile Time
|
Program statements and expressions are bound to machine instruction sequences.
|
|
Program Load Time
|
Static variables, program code, run-time stack assigned to fixed memory addresses.
|
|
Program Run Time
|
Variables are bound to values.
(x=3). |
|
Reliability
|
Runs same way
--Every time run --On every platform Exception Handling Type checking |
|
Orthogonality
|
Contributes to Readability.
Small, mutually independent set of primitive operations. Few exceptions to rules. |
|
Abstraction
|
Code reuse
Libraries Data and procedural abstraction |
|
Cost
|
Distribution/Training
Code Maintenance Compiling Executing |
|
What is the definition of Syntax?
|
The form or structure of the expressions, statements, and program units
|
|
What is the definition of Semantics?
|
The meaning of the expressions, statements, and program units
|
|
Language
|
A set of sentences
|
|
Sentence
|
A string of characters, composed of lexemes, over some alphabet
|