Unit 2 Flashcards
What are the Language Categories
- Imperative
- Functional
- Logic
- Markup/ programming hybrid
What language category has central features as variables, assignment statements, and iteration?
Imperative
What language category’s main means of making computations is by applying functions to given parameters.
Functional
A language category that is rule-based and is specified in no particular order is called what?
Logic
What language category’s markup language is extended to support some programming
Markup/ Programming Hybrid
What are the language design trade-offs
- Reliability vs. cost of execution
- Readability vs. writability
- Writability (Flexibility) vs. reliability
What are the Implementation Methods?
- Compilation
- Pure Interpretation
- Hybrid Implementation systems
What type of implementation requires the source code to be available and the translation is done during the execution of the program?
Interpretation
What type of implementation completely converts source code into a native language before execution?
Compilation
The primary advantage of using implementation where translation occurs during execution is what?
Portability
What is the advantage of completely translating a program before execution?
Speed
What implementation takes a high-level language program and translates it to an easy-to-read interpretation.
Hybrid Implementation Systems
How would you translate a java code
You define virtual language, write compiler to write to their language, then write to interpreter that understands it.