Semanitc Analysis Flashcards

1
Q

Syntax concerns …

A

The value form of a program

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

Semantics concern a programs

A

Meaning

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

What are the two type of semantic rules

A

Dynamic and static

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

Static semantics only has to do with the

A

Legal forms of program

State type constraints

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

Dynamic semantics describe the meaning of

A

Expressing statements and program units

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

What is the principal job of the semantic analyzer

A

Enforce static semantics

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

When our static semantic rules enforced by the compiler?

A

Compile time (type checking)

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

When is the dynamic semantic rules enforced at by the compiler generated code?

A

Runtime (bounds checking)

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

Which static semantic attribute is Syed to pass semantic Information bottom up in a parse tree?

A

Synthesized attributes

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

What type of static semantic attribute is used to pass semantic information down or across the tree? (Similar to variables)

A

Inherited attributes

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

What type of semantics gives a program meanings in terms of its implantation on a real or virtual machine?

A

Operational

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

In operational semantics the state changes are defined by what in the machine?

A

Coded algorithms

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

I’m denotational semantics the state change is defined by what?

A

Rigorous mathematical functions

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