Unit 2 Flashcards

1
Q

What are the Language Categories

A
  • Imperative
  • Functional
  • Logic
  • Markup/ programming hybrid
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What language category has central features as variables, assignment statements, and iteration?

A

Imperative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What language category’s main means of making computations is by applying functions to given parameters.

A

Functional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A language category that is rule-based and is specified in no particular order is called what?

A

Logic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What language category’s markup language is extended to support some programming

A

Markup/ Programming Hybrid

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the language design trade-offs

A
  • Reliability vs. cost of execution
  • Readability vs. writability
  • Writability (Flexibility) vs. reliability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the Implementation Methods?

A
  • Compilation
  • Pure Interpretation
  • Hybrid Implementation systems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What type of implementation requires the source code to be available and the translation is done during the execution of the program?

A

Interpretation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What type of implementation completely converts source code into a native language before execution?

A

Compilation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The primary advantage of using implementation where translation occurs during execution is what?

A

Portability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the advantage of completely translating a program before execution?

A

Speed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What implementation takes a high-level language program and translates it to an easy-to-read interpretation.

A

Hybrid Implementation Systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How would you translate a java code

A

You define virtual language, write compiler to write to their language, then write to interpreter that understands it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly