Deck 12: Formal Semantics

ملء الشاشة (f)
exit full mode
سؤال
Semantic domains having additional mathematical structure are called algebras.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Semantic domains are the sets in which semantic functions take their values.
سؤال
It is possible to implement operational semantic rules directly as a program to get an executable specification.
سؤال
A least-fixed-point solution is a solution that has been made as flexible as possible.
سؤال
Programming is a goal-oriented activity.
سؤال
Formal specifications written in the operational or denotational style can be translated relatively easily into languages suitable for prototyping,such as Prolog.
سؤال
Language semantics should be dependent,such that each rule is derived from the other rules.
سؤال
Operational semantics cannot be used to define program behavior in terms of an abstract machine.
سؤال
There is a single,universal standard mathematical system for providing precise semantic descriptions of languages.
سؤال
In the sample small language presented in Chapter 12,the sets Program and Expression is an example of a syntactic domain.
سؤال
A formal specification method must be complete and consistent.
سؤال
Predicate transformers create new assertions out of old ones.
سؤال
An inference rule in logic indicates that when the premise is true,the conclusion is also true.
سؤال
Values of semantic functions in denotational descriptions will often be functions themselves.
سؤال
Axiomatic semantics define the semantics of a program by describing the effect its execution has on assertions about the data manipulated by the program.
سؤال
Reduction machines use reduction rules to specify how the control reduces the constructs of the language to a value.
سؤال
Semantic domains in denotational descriptions are never function domains.
سؤال
A denotational definition of a programming language contains a definition of the valuation functions.
سؤال
In the sample small language presented in Chapter 12,the sets Integer is an example of a syntactic domain.
سؤال
In the sample small language defined in Chapter 12,the empty environment defines all identifiers as 0.
سؤال
When an ambiguous grammar is used to define semantics,and the nonterminal symbols are replaced by single letters,____ syntax is in use.

A) dynamic
B) abstract
C) referential
D) variable
سؤال
The range of a semantic function is a ____.

A) syntactic domain
B) semantic domain
C) syntactic range
D) semantic range
سؤال
The theory of axiomatic semantics was developed as a tool for proving the correctness of programs and program fragments.
سؤال
An axiomatic specification of the semantics of a language construct implies that if the precondition is true,then the postcondition is true.
سؤال
____ semantics uses mathematical logic to define a language.

A) Axiomatic
B) Denotational
C) Operational
D) Logical
سؤال
A(n)____ specification allows us to construct a language interpreter directly from a formal specification.

A) abstract
B) executable
C) reduction
D) inference
سؤال
A(n)____ can be viewed as consisting of a program,a control,and a store or memory.

A) abstract machine
B) reduction machine
C) definitional compiler
D) semantic machine
سؤال
The value of a semantic function is specified by giving a semantic ____ corresponding to each grammar rule.

A) range
B) definition
C) value
D) equation
سؤال
____ are inference rules with no premise.

A) Axioms
B) Postulates
C) Theorems
D) Reduction rules
سؤال
The domain of a semantic function is a ____.

A) syntactic domain
B) semantic range
C) syntactic range
D) semantic domain
سؤال
The ____ rule expresses that reductions can be performed stepwise.

A) transitivity
B) sequential
C) stepwise
D) parallel
سؤال
____ semantics define a language by describing its actions in terms of the operations of an actual or hypothetical machine.

A) Denotational
B) Axiomatic
C) Theoretical
D) Operational
سؤال
To show that a while-statement is correct,we do not need to derive completely its weakest precondition,but only an approximation of it.
سؤال
The weakest precondition of a series of statements is the composition of the weakest preconditions of its parts.
سؤال
An identifier I is free if it is bound only by the existential quantifier.
سؤال
A translator is ____ to ensure that it produces behavior described in the language definition.

A) verified
B) validated
C) proven
D) vetted
سؤال
The ____ is an abstract machine whose control operates directly on a program to reduce it to its semantic value.

A) definitional compiler
B) abstract evaluator
C) reduction machine
D) elimination semantics
سؤال
____ semantics use mathematical functions on program components to specify semantics.

A) Operational
B) Denotational
C) Axiomatic
D) Mathematical
سؤال
____ interpreters can be used to specify the operational semantics for a language definition.

A) Operational
B) Definitional
C) Theoretical
D) Abstract
سؤال
In ____ semantics,a function describes semantics by associating semantic values to syntactically correct constructs.

A) axiomatic
B) denotational
C) operational
D) abstract
سؤال
The Law of ____ states that if a postcondition Q implies R then the weakest precondition of Q implies the weakest precondition of R.

A) the Excluded Miracle
B) Conjunction
C) Monotonicity
D) Disjunction
سؤال
The Distributivity of ____ concerns the behavior of the weakest precondition and the logical operator "and".

A) Conjunction
B) Monotonicity
C) Disjunction
D) Excluded Miracle
سؤال
The evaluation of expressions in the presence of an environment must include a(n)____ as a parameter.

A) reduction rule
B) arithmetic operator
C) environment
D) domain
سؤال
In denotational semantics,a semantic function is specified for each ____.

A) semantic domain
B) syntactic domain
C) environment
D) lifted domain
سؤال
Assertions about the situation just before execution are called ____.

A) preconditions
B) postconditions
C) executable assertions
D) requirements
سؤال
A function is a(n)____ if it takes a predicate as an argument and returns a predicate result.

A) axiomatic specification
B) predicate axiom
C) predicate transformer
D) expression transformer
سؤال
A semantic domain with the special value called bottom added to it is called a ____.

A) minimal environment
B) lifted environment
C) minimal domain
D) lifted domain
سؤال
Assertions about the situation just after execution are called ____.

A) preconditions
B) executable results
C) postconditions
D) verifications
سؤال
The Distributivity of ____ concerns the behavior of the weakest precondition and the logical operator "or".

A) the Excluded Miracle
B) Conjunction
C) Monotonicity
D) Disjunction
سؤال
The Law of ____ states that nothing a programming construct can do will make false into true.

A) Monotonicity
B) Conjunction
C) Disjunction
D) the Excluded Miracle
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 12: Formal Semantics
1
Semantic domains having additional mathematical structure are called algebras.
True
2
Semantic domains are the sets in which semantic functions take their values.
True
3
It is possible to implement operational semantic rules directly as a program to get an executable specification.
True
4
A least-fixed-point solution is a solution that has been made as flexible as possible.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
Programming is a goal-oriented activity.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
Formal specifications written in the operational or denotational style can be translated relatively easily into languages suitable for prototyping,such as Prolog.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
Language semantics should be dependent,such that each rule is derived from the other rules.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
Operational semantics cannot be used to define program behavior in terms of an abstract machine.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
There is a single,universal standard mathematical system for providing precise semantic descriptions of languages.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
In the sample small language presented in Chapter 12,the sets Program and Expression is an example of a syntactic domain.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
A formal specification method must be complete and consistent.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
Predicate transformers create new assertions out of old ones.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
An inference rule in logic indicates that when the premise is true,the conclusion is also true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
Values of semantic functions in denotational descriptions will often be functions themselves.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
Axiomatic semantics define the semantics of a program by describing the effect its execution has on assertions about the data manipulated by the program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
Reduction machines use reduction rules to specify how the control reduces the constructs of the language to a value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
Semantic domains in denotational descriptions are never function domains.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
A denotational definition of a programming language contains a definition of the valuation functions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
In the sample small language presented in Chapter 12,the sets Integer is an example of a syntactic domain.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
In the sample small language defined in Chapter 12,the empty environment defines all identifiers as 0.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
When an ambiguous grammar is used to define semantics,and the nonterminal symbols are replaced by single letters,____ syntax is in use.

A) dynamic
B) abstract
C) referential
D) variable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
The range of a semantic function is a ____.

A) syntactic domain
B) semantic domain
C) syntactic range
D) semantic range
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
The theory of axiomatic semantics was developed as a tool for proving the correctness of programs and program fragments.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
An axiomatic specification of the semantics of a language construct implies that if the precondition is true,then the postcondition is true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
____ semantics uses mathematical logic to define a language.

A) Axiomatic
B) Denotational
C) Operational
D) Logical
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
A(n)____ specification allows us to construct a language interpreter directly from a formal specification.

A) abstract
B) executable
C) reduction
D) inference
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
A(n)____ can be viewed as consisting of a program,a control,and a store or memory.

A) abstract machine
B) reduction machine
C) definitional compiler
D) semantic machine
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
The value of a semantic function is specified by giving a semantic ____ corresponding to each grammar rule.

A) range
B) definition
C) value
D) equation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
____ are inference rules with no premise.

A) Axioms
B) Postulates
C) Theorems
D) Reduction rules
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
The domain of a semantic function is a ____.

A) syntactic domain
B) semantic range
C) syntactic range
D) semantic domain
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
The ____ rule expresses that reductions can be performed stepwise.

A) transitivity
B) sequential
C) stepwise
D) parallel
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
____ semantics define a language by describing its actions in terms of the operations of an actual or hypothetical machine.

A) Denotational
B) Axiomatic
C) Theoretical
D) Operational
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
To show that a while-statement is correct,we do not need to derive completely its weakest precondition,but only an approximation of it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
The weakest precondition of a series of statements is the composition of the weakest preconditions of its parts.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
An identifier I is free if it is bound only by the existential quantifier.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
A translator is ____ to ensure that it produces behavior described in the language definition.

A) verified
B) validated
C) proven
D) vetted
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
The ____ is an abstract machine whose control operates directly on a program to reduce it to its semantic value.

A) definitional compiler
B) abstract evaluator
C) reduction machine
D) elimination semantics
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
____ semantics use mathematical functions on program components to specify semantics.

A) Operational
B) Denotational
C) Axiomatic
D) Mathematical
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
____ interpreters can be used to specify the operational semantics for a language definition.

A) Operational
B) Definitional
C) Theoretical
D) Abstract
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
In ____ semantics,a function describes semantics by associating semantic values to syntactically correct constructs.

A) axiomatic
B) denotational
C) operational
D) abstract
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
The Law of ____ states that if a postcondition Q implies R then the weakest precondition of Q implies the weakest precondition of R.

A) the Excluded Miracle
B) Conjunction
C) Monotonicity
D) Disjunction
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
The Distributivity of ____ concerns the behavior of the weakest precondition and the logical operator "and".

A) Conjunction
B) Monotonicity
C) Disjunction
D) Excluded Miracle
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
The evaluation of expressions in the presence of an environment must include a(n)____ as a parameter.

A) reduction rule
B) arithmetic operator
C) environment
D) domain
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
In denotational semantics,a semantic function is specified for each ____.

A) semantic domain
B) syntactic domain
C) environment
D) lifted domain
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
Assertions about the situation just before execution are called ____.

A) preconditions
B) postconditions
C) executable assertions
D) requirements
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
A function is a(n)____ if it takes a predicate as an argument and returns a predicate result.

A) axiomatic specification
B) predicate axiom
C) predicate transformer
D) expression transformer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
A semantic domain with the special value called bottom added to it is called a ____.

A) minimal environment
B) lifted environment
C) minimal domain
D) lifted domain
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
Assertions about the situation just after execution are called ____.

A) preconditions
B) executable results
C) postconditions
D) verifications
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
The Distributivity of ____ concerns the behavior of the weakest precondition and the logical operator "or".

A) the Excluded Miracle
B) Conjunction
C) Monotonicity
D) Disjunction
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
The Law of ____ states that nothing a programming construct can do will make false into true.

A) Monotonicity
B) Conjunction
C) Disjunction
D) the Excluded Miracle
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.