Test 1 Flashcards
List the five programming domains and give an example language for each
Scientific applications -Fortran Business applications -COBOL Artificial intelligence -L1SP Systems programming Web Software -Java
List the four major language evaluation criteria.
- Readability
- Writability
- Reliability
- Cost
the ease with which programs can be read and understood
Readability :l
the ease with which a language can be used to create programs
Writability
conformance to specifications (i.e., performs to its specifications)
Reliability
the ultimate total cost
Cost
List the four programming language categories
Imperative
Functional
Logic
Markup/programming hybrid
Programming domain : Large numbers of floating point computations use of arrays
Scientific applications
Programming domain : Produce reports, use decimal numbers and characters
Buisness applications
Programming domain : Symbols rather than numbers manipulateduse of linked lists
Artificial intelligence
Programming domain : Need efficiency because of continuous use
Systems programming
Programming domain : Eclectic collection of languages markup (e.g., HTML ), scripting (e.g., PHP), general-purpose (e.g., Java)
Web software
- Central features are variables, assignment statements, and iteration
- Include languages that support object-oriented programming
- Include scripting languages
- Include the visual languages
- Examples C, Java, Perl, JavaScript , Visual BASIC .NET, C++
Imperative
- Main means of making computations is by applying functions to given parameters
- Examples LISP, Scheme, ML , F#
Functional
- Rule-based (rules are specified in no particular order )
- Example: Prolog
Logic
- languages extended to support some programming
- Examples: JSTL, XSLT
Markup/programming hybrid
the form or structure of the expressions , statements , and program units
Syntax
the meaning of the expressions, statements, and program units
Semantics
is a language that is used to describe another language .
metalanguage
abstractions are used to represent classes of syntactic structures–they act like syntactic variables (also called nonterminal symbols, or just terminals )
BNF
A grammar that generates a sentential form for which there are two or more parse trees can be said to be
Ambiguous grammars