Overview of Programming Languages Flashcards

1
Q

Why do we study programming language concepts?

A
  1. Express ideas
  2. Ability to learn new languages
  3. Understanding the significance of implementation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Give 3 words that identify the Language Evaluation Criteria

A
  1. Readability
  2. Writability
  3. Reliability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is readability?

A

easily read your syntax

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

What does readability include?

A
  1. Overall simplicity
  2. Orthogonality
  3. Data types
  4. Syntax design
  5. Form and Meaning
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define Overall simplicity

A

Syntax is shorter and does not take up much space

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

Define Orthogonality

A

small set of constructs can be combined in a small number of ways

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

Define Data Types

A

facilities to define data types and structures

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

Define Syntax Design

A

Special words from the programming language

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

Define form and meaning

A

statement indicate its purpose

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

Define Writability

A

How easily a language can be used to create programs

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

Writability includes?

A
  1. Simplicity and orthogonality
  2. Support for abstraction
  3. Expressivity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Define Reliability

A

performs the specifications under all conditions

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

Reliability includes?

A
  1. Type checking
  2. Exception handling
  3. Aliasing
  4. Readability and Writability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the 7 language categories?

A
  1. Imperative
  2. Functional
  3. Logic
  4. Object Oriented
  5. Scripting
  6. Markup/Hybrid
  7. Special purposes languages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Define Compilation

A

translates source code to machine language

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

Define Lexical analyzer

A

identifiers, special words, operators and punctuation symbols

17
Q

Define Syntax Analyzer

A

uses lexical units to form parse trees

18
Q

Define Intermediate Code

A

Produces a program in a different language

19
Q

Define Semantic analyzer

A

Checks for errors not detected

20
Q

Define Optimization

A

Improves program by making it smaller or faster

21
Q

Define Code Generator

A

translates code to machine language

22
Q

Define Symbol Table

A

contains type and attribute information of user defined names

23
Q

Define Pure Interpretation systems

A
  • programs are interpreted with no translation
  • easy to debug but execution is slower and requires more space
24
Q

Define Hybrid Interpretation System

A

translates high level language to an intermediate language designed for easy implementation

25
Q

This hardware specifies that the code from another file is to be included and processes a program before the program is compiled

A

Preprocessors