1. Home
  2. Explore
  3. Computer Science
  4. CTL Temporal Logic

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

CTL Temporal Logic

  • 62Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Temporal Foundations

What distinguishes a state formula from a path formula in temporal logic?

62 questions

  1. 1

    What distinguishes a state formula from a path formula in temporal logic?

    1. A

      A state formula applies to finite models, whereas a path formula applies only to infinite models

    2. B

      A state formula is evaluated at a state, whereas a path formula is evaluated along a path

    3. C

      A state formula uses only logical operators, whereas a path formula uses only temporal operators

    4. D

      A state formula is evaluated along a path, whereas a path formula is evaluated at a state

    Correct answer
    B

    A state formula is evaluated at a state, whereas a path formula is evaluated along a path

    Explanation

    The truth of a state formula is defined at a particular state of a model, while the truth of a path formula is defined over an execution path.

  2. 2

    What does the notation M, s ⊨ φ express?

    1. A

      Formula φ describes every possible path beginning at state s

    2. B

      Model M contains formula φ as one of its atomic propositions

    3. C

      Formula φ is true at state s in model M

    4. D

      State s is reachable from formula φ in model M

    Correct answer
    C

    Formula φ is true at state s in model M

    Explanation

    The notation states that formula φ holds, or is satisfied, at state s of model M.

  3. 3

    What is the main difference between linear-time and branching-time reasoning?

    1. A

      Linear-time reasoning considers states, whereas branching-time reasoning considers only atomic propositions

    2. B

      Linear-time reasoning considers one execution trace, whereas branching-time reasoning considers multiple possible traces

    3. C

      Linear-time reasoning uses no temporal operators, whereas branching-time reasoning uses temporal operators

    4. D

      Linear-time reasoning applies to finite systems, whereas branching-time reasoning applies only to infinite systems

    Correct answer
    B

    Linear-time reasoning considers one execution trace, whereas branching-time reasoning considers multiple possible traces

    Explanation

    Linear-time logic reasons about a particular execution trace. Branching-time logic reasons about the different execution traces that can originate from a state.

  4. 4

    Why is CTL classified as a branching-time logic?

    1. A

      It requires every model to contain exactly one execution path

    2. B

      It evaluates formulas only by examining the current state label

    3. C

      It reasons about all or some of the possible execution paths from a state

    4. D

      It eliminates temporal operators and uses only Boolean connectives

    Correct answer
    C

    It reasons about all or some of the possible execution paths from a state

    Explanation

    CTL uses path quantifiers to reason about all possible paths or the existence of at least one possible path from a state.

  5. 5

    Why is the logic called computational tree logic?

    1. A

      Expanding all possible transitions from a state produces a computation tree

    2. B

      The logic replaces state-transition diagrams with arithmetic computation trees

    3. C

      Every CTL model must be represented as a physical tree without cycles

    4. D

      CTL formulas can be evaluated only on binary trees

    Correct answer
    A

    Expanding all possible transitions from a state produces a computation tree

    Explanation

    When the possible transitions from states are expanded, repeated states may appear at different time steps, producing a computational tree of executions.

  6. 6

    In an expanded computation tree, why can two occurrences of the same state have different meanings?

    1. A

      They represent different states because repeated states cannot occur in a model

    2. B

      They must have different atomic-proposition labels

    3. C

      They may represent the same state behavior at different time steps

    4. D

      They have different meanings only when their outgoing transitions differ

    Correct answer
    C

    They may represent the same state behavior at different time steps

    Explanation

    A state such as s0 may be revisited through a cycle. Its labeling and behavior can be the same, while its position in the execution occurs at a later time.

  7. 7

    If each transition represents one unit of time, what is the time of a state reached after two transitions from time t0t_0t0​?

    1. A

      t0+1t_0 + 1t0​+1

    2. B

      2t02t_02t0​

    3. C

      t0−2t_0 - 2t0​−2

    4. D

      t0+2t_0 + 2t0​+2

    Correct answer
    D

    t0+2t_0 + 2t0​+2

    Explanation

    One transition advances time by one unit, so two transitions advance time from t0t_0t0​ to t0+2t_0 + 2t0​+2.

  8. 8

    What is the defining role of a path quantifier in CTL?

    1. A

      It specifies which atomic proposition labels the current state

    2. B

      It changes a false Boolean formula into a true temporal formula

    3. C

      It specifies whether a temporal property must hold on all paths or on at least one path

    4. D

      It determines whether the model has a finite or infinite number of states

    Correct answer
    C

    It specifies whether a temporal property must hold on all paths or on at least one path

    Explanation

    The path quantifiers A and E distinguish universal reasoning over all paths from existential reasoning over at least one path.

  9. 9

    What does the path quantifier A mean in CTL?

    1. A

      The property holds only at the initial state

    2. B

      The property holds on exactly one possible path

    3. C

      The property holds on all possible paths

    4. D

      The property holds after every atomic proposition changes

    Correct answer
    C

    The property holds on all possible paths

    Explanation

    A stands for “all” and requires the associated temporal property to hold on every possible execution path.

  10. 10

    What does the path quantifier E mean in CTL?

    1. A

      The property holds only at the end of a computation

    2. B

      There exists at least one path on which the property holds

    3. C

      The property holds only when the current state has one successor

    4. D

      The property holds on every path in the model

    Correct answer
    B

    There exists at least one path on which the property holds

    Explanation

    E stands for “exists” and requires at least one possible execution path satisfying the associated temporal property.

  11. 11

    Which set contains the basic temporal operators described for CTL?

    1. A

      ¬, ∧, ∨, and →

    2. B

      X, F, G, and U

    3. C

      S, R, W, and Y

    4. D

      A, E, ∧, and ∨

    Correct answer
    B

    X, F, G, and U

    Explanation

    The basic temporal operators are next (X), future/eventually (F), globally/always (G), and until (U).

  12. 12

    Which CTL temporal operators are unary?

    1. A

      X, G, and U

    2. B

      U, A, and E

    3. C

      X, F, and G

    4. D

      F, U, and implication

    Correct answer
    C

    X, F, and G

    Explanation

    X, F, and G operate on one formula. The until operator U is binary and requires two formulas.

  13. 13

    Why is the until operator U considered binary?

    1. A

      It must be preceded by both path quantifiers A and E

    2. B

      It evaluates exactly two execution paths at the same time

    3. C

      It requires a formula that holds beforehand and a formula that eventually holds

    4. D

      It can be applied only to two atomic propositions

    Correct answer
    C

    It requires a formula that holds beforehand and a formula that eventually holds

    Explanation

    A formula such as φ U ψ uses two operands: φ must hold until ψ becomes true.

  14. 14

    Which of the following is a CTL formula according to the recursive syntax?

    1. A

      G p

    2. B

      AG p

    3. C

      F r

    4. D

      p U q

    Correct answer
    B

    AG p

    Explanation

    AG p is a CTL formula because the temporal operator G is preceded by the path quantifier A. The other temporal expressions lack the required path quantifier.

  15. 15

    Which expressions are CTL formulas independently of any atomic proposition?

    1. A

      Only the constant ⊤

    2. B

      The constants ⊤ and ⊥

    3. C

      Only the constant ⊥

    4. D

      Neither constant, because CTL contains only temporal formulas

    Correct answer
    B

    The constants ⊤ and ⊥

    Explanation

    ⊤ represents true and ⊥ represents false; both are included as CTL formulas.

  16. 16

    If φ is a CTL formula, which construction is guaranteed to remain a CTL formula?

    1. A

      ¬φ

    2. B

      φ U ψ without path quantification

    3. C

      Fφ without a path quantifier

    4. D

      Gφ without a path quantifier

    Correct answer
    A

    ¬φ

    Explanation

    Boolean connectives such as negation can be applied recursively to CTL formulas. Temporal operators must be combined with a path quantifier.

  17. 17

    Which statement correctly distinguishes a temporal formula from a CTL formula?

    1. A

      A temporal formula may lack path quantification, whereas every CTL temporal operator must be path-quantified

    2. B

      A temporal formula uses only U, whereas a CTL formula uses only X

    3. C

      A temporal formula cannot contain atomic propositions, whereas a CTL formula can

    4. D

      A temporal formula is always a state formula, whereas a CTL formula is always a path formula

    Correct answer
    A

    A temporal formula may lack path quantification, whereas every CTL temporal operator must be path-quantified

    Explanation

    Expressions such as F r U q may be temporal formulas but are not CTL formulas unless each temporal operator is appropriately preceded by A or E.

  18. 18

    Why is AF(E(p U q)) syntactically valid CTL?

    1. A

      The outer operator makes all inner syntax irrelevant

    2. B

      Both temporal operators are preceded by path quantifiers

    3. C

      It contains no atomic propositions inside the temporal operators

    4. D

      The until operator is treated as a Boolean connective

    Correct answer
    B

    Both temporal operators are preceded by path quantifiers

    Explanation

    The inner U is preceded by E, and the outer F is preceded by A, satisfying the CTL syntax requirement.

  19. 19

    What is a subformula of a CTL formula?

    1. A

      A formula occurring as a component within the larger formula

    2. B

      A state that has fewer outgoing transitions than the initial state

    3. C

      An atomic proposition that is false in the entire model

    4. D

      A path that terminates before the larger formula is evaluated

    Correct answer
    A

    A formula occurring as a component within the larger formula

    Explanation

    Atomic propositions and progressively constructed expressions, such as q, ¬q, and EG¬q, are subformulas of a larger CTL formula when they occur within it.

  20. 20

    What does AX φ mean at a state?

    1. A

      Formula φ is true in at least one immediate successor state

    2. B

      Formula φ is true in the current state and every predecessor state

    3. C

      Formula φ is true in every state reachable at any future time

    4. D

      Formula φ is true in every immediate successor state

    Correct answer
    D

    Formula φ is true in every immediate successor state

    Explanation

    AX φ requires φ to hold in all states reached by one transition from the current state.

  21. 21

    What does EX φ mean at a state?

    1. A

      Formula φ is true in every state on every path

    2. B

      Formula φ is true only in the current state

    3. C

      Formula φ is true in at least one immediate successor state

    4. D

      Formula φ is true in every immediate successor state

    Correct answer
    C

    Formula φ is true in at least one immediate successor state

    Explanation

    EX φ is existential next: there must be at least one transition to a state where φ holds.

  22. 22

    A state has three successors, and a formula is true in two of them but false in the third. Which conclusion follows?

    1. A

      Both AX φ and EX φ are false

    2. B

      Both AX φ and EX φ are true

    3. C

      EX φ is true, but AX φ is false

    4. D

      AX φ is true, but EX φ is false

    Correct answer
    C

    EX φ is true, but AX φ is false

    Explanation

    At least one successor satisfies φ, so EX φ holds. Because one successor does not satisfy φ, AX φ does not hold.

  23. 23

    What does AG φ require?

    1. A

      Formula φ holds at every state on one selected path

    2. B

      Formula φ holds at the next state on at least one path

    3. C

      Formula φ holds at every state on every path from the current state

    4. D

      Formula φ holds at some future state on every path

    Correct answer
    C

    Formula φ holds at every state on every path from the current state

    Explanation

    AG φ means that on every path, φ remains true globally at every state along that path.

  24. 24

    What does EG φ require?

    1. A

      Every path contains a state where φ holds

    2. B

      There is at least one path on which φ holds at every state

    3. C

      Every immediate successor satisfies φ

    4. D

      There is at least one future state where φ holds on every path

    Correct answer
    B

    There is at least one path on which φ holds at every state

    Explanation

    EG φ is existential globally: one path must exist along which φ holds continuously.

  25. 25

    A state has one path on which φ is always true and another path on which φ eventually becomes false. Which statement is correct?

    1. A

      Both AG φ and EG φ are true

    2. B

      AG φ is true, but EG φ is false

    3. C

      Both AG φ and EG φ are false

    4. D

      EG φ is true, but AG φ is false

    Correct answer
    D

    EG φ is true, but AG φ is false

    Explanation

    The first path witnesses EG φ, while the second path prevents φ from holding globally on all paths, making AG φ false.

  26. 26

    What does AF φ require?

    1. A

      Every path eventually reaches a state where φ holds

    2. B

      Every path has φ true at every state

    3. C

      The next state on every path satisfies φ

    4. D

      At least one path eventually reaches a state where φ holds

    Correct answer
    A

    Every path eventually reaches a state where φ holds

    Explanation

    AF φ means that for every path beginning at the current state, some state along that path eventually satisfies φ.

  27. 27

    What does EF φ require?

    1. A

      Every path eventually reaches a state where φ holds

    2. B

      At least one path has φ true at every state

    3. C

      Every immediate successor satisfies φ

    4. D

      At least one path eventually reaches a state where φ holds

    Correct answer
    D

    At least one path eventually reaches a state where φ holds

    Explanation

    EF φ is existential future: there must be one path containing a future state where φ is true.

  28. 28

    A state has two possible paths, and both paths eventually reach a state satisfying φ. Which formula is true?

    1. A

      AG φ

    2. B

      EG φ only

    3. C

      AF φ

    4. D

      EF φ only

    Correct answer
    C

    AF φ

    Explanation

    Because every path eventually reaches a φ-state, AF φ holds. Consequently, EF φ also holds, but AF φ is the strongest matching choice.

  29. 29

    What does A(φ U ψ) require on every path?

    1. A

      The next state satisfies ψ, and the current state satisfies φ

    2. B

      Some future state satisfies ψ, and every preceding state satisfies φ

    3. C

      Some path satisfies φ U ψ, while other paths may violate it

    4. D

      Every state satisfies φ, and no state ever satisfies ψ

    Correct answer
    B

    Some future state satisfies ψ, and every preceding state satisfies φ

    Explanation

    For every path, there must be a position where ψ holds, and φ must hold at all earlier positions on that path.

  30. 30

    What does E(φ U ψ) require?

    1. A

      Every path reaches a ψ-state with φ true at all preceding states

    2. B

      At least one path has φ true forever and never reaches ψ

    3. C

      Every immediate successor satisfies both φ and ψ

    4. D

      At least one path reaches a ψ-state with φ true at all preceding states

    Correct answer
    D

    At least one path reaches a ψ-state with φ true at all preceding states

    Explanation

    The existential until formula needs only one path on which ψ eventually holds and φ holds at every earlier state.

  31. 31

    If one path violates φ U ψ but another path satisfies it, what is the result at the starting state?

    1. A

      Both until formulas are false

    2. B

      A(φ U ψ) is true, but E(φ U ψ) is false

    3. C

      Both until formulas are true

    4. D

      E(φ U ψ) is true, but A(φ U ψ) is false

    Correct answer
    D

    E(φ U ψ) is true, but A(φ U ψ) is false

    Explanation

    The satisfying path is enough for the existential formula, but the violating path prevents the universal formula from holding.

  32. 32

    When is an atomic proposition p true at state s?

    1. A

      When every successor of s is labeled with p

    2. B

      When p belongs to the transition relation leaving s

    3. C

      When p belongs to the labeling set assigned to s

    4. D

      When p appears somewhere in the model, regardless of its state

    Correct answer
    C

    When p belongs to the labeling set assigned to s

    Explanation

    The labeling function identifies which atomic propositions are true at each state. Thus p holds at s exactly when p ∈ L(s).

  33. 33

    When is ¬φ true at a state?

    1. A

      When φ is true on at least one path

    2. B

      When φ is not true at that state

    3. C

      When φ is true at every successor state

    4. D

      When the state has no label for any atomic proposition

    Correct answer
    B

    When φ is not true at that state

    Explanation

    Negation reverses the truth value at the same state: ¬φ holds exactly when φ does not hold there.

  34. 34

    Under what condition is φ₁ ∧ φ₂ true at a state?

    1. A

      At least one of φ₁ and φ₂ is true at that state

    2. B

      Both formulas are true on at least one path from that state

    3. C

      Both φ₁ and φ₂ are true at that state

    4. D

      Neither φ₁ nor φ₂ is true at that state

    Correct answer
    C

    Both φ₁ and φ₂ are true at that state

    Explanation

    Conjunction requires both component formulas to hold at the same state.

  35. 35

    Under what condition is φ₁ ∨ φ₂ true at a state?

    1. A

      Both φ₁ and φ₂ are true at every successor state

    2. B

      At least one of φ₁ and φ₂ is true at that state

    3. C

      Exactly one of the formulas must be true on every path

    4. D

      Both φ₁ and φ₂ are false at that state

    Correct answer
    B

    At least one of φ₁ and φ₂ is true at that state

    Explanation

    Disjunction is true when one or both of its component formulas hold at the state.

  36. 36

    How is implication φ₁ → φ₂ evaluated according to the described semantics?

    1. A

      It is equivalent to ¬φ₁ ∨ φ₂

    2. B

      It is true only when both formulas are false

    3. C

      It is equivalent to φ₁ ∧ ¬φ₂

    4. D

      It is true only when both formulas are true

    Correct answer
    A

    It is equivalent to ¬φ₁ ∨ φ₂

    Explanation

    The standard equivalence used is φ₁ → φ₂ ≡ ¬φ₁ ∨ φ₂.

  37. 37

    What is the structure of the model used to define CTL semantics?

    1. A

      A single set containing all reachable propositions

    2. B

      A two-tuple consisting only of states and atomic propositions

    3. C

      A four-tuple consisting of paths, formulas, time, and labels

    4. D

      A three-tuple consisting of states, a transition relation, and a labeling function

    Correct answer
    D

    A three-tuple consisting of states, a transition relation, and a labeling function

    Explanation

    The model is represented as a three-tuple containing a finite state set, a transition relation, and a labeling function.

  38. 38

    What does the transition relation in a CTL model represent?

    1. A

      Which formulas are valid throughout the model

    2. B

      Which atomic propositions are true at each state

    3. C

      Which states can transition to which other states

    4. D

      Which paths must be excluded from the computation tree

    Correct answer
    C

    Which states can transition to which other states

    Explanation

    The transition relation is a subset of the Cartesian product of the state set with itself and records allowed state-to-state transitions.

  39. 39

    What completeness condition must the transition relation satisfy in a CTL model?

    1. A

      Every state must have exactly one outgoing transition

    2. B

      Every state must have at least one incoming transition

    3. C

      Every state must have at least one outgoing transition

    4. D

      Every state must transition directly to every other state

    Correct answer
    C

    Every state must have at least one outgoing transition

    Explanation

    A valid CTL structure requires an outgoing transition from every state, ensuring that every computation can continue.

  40. 40

    Why is a state with no outgoing transition invalid in the described CTL structure?

    1. A

      It makes the state an atomic proposition rather than a model state

    2. B

      It forces all path quantifiers to become existential

    3. C

      It prevents the labeling function from assigning propositions

    4. D

      It violates the requirement that every state have a successor

    Correct answer
    D

    It violates the requirement that every state have a successor

    Explanation

    The transition relation must be total or complete: every state must have at least one next state.

  41. 41

    What is the purpose of the labeling function L?

    1. A

      It determines which states have outgoing transitions

    2. B

      It records the number of paths beginning at each state

    3. C

      It assigns each state the atomic propositions that are true there

    4. D

      It assigns each path a unique temporal operator

    Correct answer
    C

    It assigns each state the atomic propositions that are true there

    Explanation

    The labeling function maps each state to a set of atomic propositions, indicating which propositions hold at that state.

  42. 42

    What is the codomain of the labeling function in the described model?

    1. A

      The power set of the set of atomic propositions

    2. B

      The set of all possible execution paths

    3. C

      The Cartesian product of the state set with itself

    4. D

      The set of all temporal operators

    Correct answer
    A

    The power set of the set of atomic propositions

    Explanation

    The labeling function has the form L:S→2VL:S\rightarrow 2^VL:S→2V, where VVV is the set of atomic propositions.

  43. 43

    What is a Kripke structure in this context?

    1. A

      A collection of formulas without an underlying transition system

    2. B

      A finite-state transition system with a complete transition relation and state labeling

    3. C

      A graph in which each state has exactly two successors

    4. D

      A transition system containing only states with no cycles

    Correct answer
    B

    A finite-state transition system with a complete transition relation and state labeling

    Explanation

    A Kripke structure resembles a finite-state machine but includes state labeling and requires at least one outgoing transition from every state.

  44. 44

    A model contains states s0, s1, and s2, with labels {a,b}, {c}, and {b,c}, respectively. What does the label of s2 mean?

    1. A

      All atomic propositions are false at s2

    2. B

      Atomic propositions a and b are true at s2

    3. C

      Atomic propositions b and c are true at s2

    4. D

      Only atomic proposition c is true at s2

    Correct answer
    C

    Atomic propositions b and c are true at s2

    Explanation

    A state's label lists exactly the atomic propositions that are true there, so b and c hold at s2.

  45. 45

    Suppose a model has transitions from s0 to s1, from s1 to s2 and s3, from s2 to s3, and from s3 to s2 and itself. How many transitions are in the relation?

    1. A

      Seven transitions

    2. B

      Five transitions

    3. C

      Six transitions

    4. D

      Four transitions

    Correct answer
    C

    Six transitions

    Explanation

    The transitions are s0→s1, s1→s2, s1→s3, s2→s3, s3→s2, and s3→s3, for a total of six.

  46. 46

    If L(s0) = {p,q,r}, what can be concluded?

    1. A

      The state s0 has exactly three outgoing transitions

    2. B

      p, q, and r are all true at s0

    3. C

      p, q, and r are all false at s0

    4. D

      At least one of p, q, and r is true at s0

    Correct answer
    B

    p, q, and r are all true at s0

    Explanation

    The labeling function lists every atomic proposition true at a state, so all three propositions hold at s0.

  47. 47

    How many possible truth-value assignments exist for three atomic propositions?

    1. A

      32=93^2 = 932=9

    2. B

      23=82^3 = 823=8

    3. C

      3!=63! = 63!=6

    4. D

      2+3=52+3 = 52+3=5

    Correct answer
    B

    23=82^3 = 823=8

    Explanation

    Each of the three propositions can independently be true or false, giving 23=82^3 = 823=8 possible assignments.

  48. 48

    Which set represents the complete power set of {p,q,r}?

    1. A

      {p,q}, {p,r}, {q,r}, {p,q,r}

    2. B

      ∅, {p}, {q}, {r}, {p,q}, {p,r}, {q,r}, {p,q,r}

    3. C

      {p}, {q}, {r}, {p,q}, {p,r}, {q,r}

    4. D

      ∅, {p}, {q}, {r}, {p,q,r}

    Correct answer
    B

    ∅, {p}, {q}, {r}, {p,q}, {p,r}, {q,r}, {p,q,r}

    Explanation

    The power set contains the empty set, all three singleton sets, all three two-element subsets, and the full three-element set.

  49. 49

    What does each subset of a set of atomic propositions represent in a state-space interpretation?

    1. A

      One possible transition between two states

    2. B

      One execution path containing every proposition

    3. C

      One possible combination of propositions that are true in a state

    4. D

      One temporal operator applicable to the propositions

    Correct answer
    C

    One possible combination of propositions that are true in a state

    Explanation

    A subset identifies which propositions are true, while propositions not in the subset are false. Thus each subset represents a possible state valuation.

  50. 50

    For three atomic propositions p, q, and r, which assignment describes the state {p,r}?

    1. A

      p and r are true, while q is false

    2. B

      q and r are true, while p is false

    3. C

      All three propositions are true

    4. D

      Only p is true, while q and r are false

    Correct answer
    A

    p and r are true, while q is false

    Explanation

    The subset {p,r} lists the propositions that are true; therefore q is false in that state.

  51. 51

    How many possible states are generated by nnn independently Boolean system variables?

    1. A

      n!n!n!

    2. B

      2n2n2n

    3. C

      2n2^n2n

    4. D

      n2n^2n2

    Correct answer
    C

    2n2^n2n

    Explanation

    Each variable has two possible values, true or false, so nnn variables produce 2n2^n2n possible combinations.

  52. 52

    In a digital-system interpretation, what do the two truth values of an atomic proposition commonly represent?

    1. A

      The path being linear or branching

    2. B

      The system variable being on or off

    3. C

      The state being initial or terminal

    4. D

      The system having one or two outgoing transitions

    Correct answer
    B

    The system variable being on or off

    Explanation

    Atomic propositions can represent Boolean system variables, whose values may be interpreted as on/off or 1/01/01/0.

  53. 53

    Why can the number of reachable states be smaller than 2n2^n2n?

    1. A

      The labeling function removes all states with more than one true proposition

    2. B

      Some possible truth-value combinations may be invalid or unreachable in the system

    3. C

      CTL permits only one state for each atomic proposition

    4. D

      The transition relation must contain exactly nnn transitions

    Correct answer
    B

    Some possible truth-value combinations may be invalid or unreachable in the system

    Explanation

    The 2n2^n2n combinations are the maximum possible valuations. System constraints may prevent some configurations from occurring or being reached.

  54. 54

    Which relationship between reachable states and possible valuations is correct?

    1. A

      Reachable states form a subset of the at most 2n2^n2n possible valuations

    2. B

      Reachable states always exceed 2n2^n2n because paths create new states

    3. C

      Reachable states always equal 2n2^n2n, regardless of system constraints

    4. D

      Reachable states are unrelated to the number of system variables

    Correct answer
    A

    Reachable states form a subset of the at most 2n2^n2n possible valuations

    Explanation

    The complete valuation space contains 2n2^n2n combinations, but a particular system may realize only a subset of them.

  55. 55

    Which CTL formula expresses that it is possible to eventually reach a state where started is true and ready is false?

    1. A

      AF(started ∧ ready)

    2. B

      AG(started → ready)

    3. C

      EF(started ∧ ¬ready)

    4. D

      EX(started ∧ ready)

    Correct answer
    C

    EF(started ∧ ¬ready)

    Explanation

    “It is possible” requires E, and “eventually” requires F, giving EF(started ∧ ¬ready).

  56. 56

    Which CTL formula expresses that whenever a request occurs, it is eventually acknowledged on every possible execution?

    1. A

      EG(request ∧ AF acknowledged)

    2. B

      AX(request ∧ acknowledged)

    3. C

      EF(request → AG acknowledged)

    4. D

      AG(request → AF acknowledged)

    Correct answer
    D

    AG(request → AF acknowledged)

    Explanation

    The property must hold from every state (AG); whenever request is true, every path must eventually reach acknowledged (AF).

  57. 57

    Why is AG(request → AF acknowledged) stronger than EF(request → AF acknowledged) for a resource-request requirement?

    1. A

      The AG formula checks only the next state, whereas the EF formula checks all future states

    2. B

      The AG formula requires the requirement to hold from every state, not merely on one path

    3. C

      The AG formula contains no temporal operators, unlike the EF formula

    4. D

      The EF formula requires all paths, whereas the AG formula requires one path

    Correct answer
    B

    The AG formula requires the requirement to hold from every state, not merely on one path

    Explanation

    The requirement says “for any state” and must therefore be globally enforced across all paths, which is captured by AG.

  58. 58

    A system state has one successor labeled q and another successor not labeled q. Which formula holds at the current state?

    1. A

      AF q

    2. B

      AG q

    3. C

      EX q

    4. D

      AX q

    Correct answer
    C

    EX q

    Explanation

    At least one immediate successor satisfies q, so EX q holds. The other formulas require stronger conditions not established by the information given.

  59. 59

    A state has a path on which p holds until a later state labeled q, while another path reaches a state where p is false before q occurs. Which conclusion is correct?

    1. A

      Both until formulas hold

    2. B

      Neither until formula holds

    3. C

      E(p U q) holds, but A(p U q) does not hold

    4. D

      A(p U q) holds, but E(p U q) does not hold

    Correct answer
    C

    E(p U q) holds, but A(p U q) does not hold

    Explanation

    One satisfying path is sufficient for E(p U q), but the violating path prevents the universal until formula from holding.

  60. 60

    Why can AG φ be true at one state but false at another state in the same model?

    1. A

      The set of paths and states reachable from each starting state can differ

    2. B

      The labeling function must assign different meanings to φ in different states

    3. C

      A formula can be globally true only at the initial state

    4. D

      CTL formulas have truth values that change randomly over time

    Correct answer
    A

    The set of paths and states reachable from each starting state can differ

    Explanation

    CTL state formulas are evaluated relative to a starting state. Different starting states may have different reachable paths, so AG φ can have different truth values.

  61. 61

    What is the purpose of checking a CTL formula against a system model?

    1. A

      To convert every branching computation into a single linear trace

    2. B

      To generate all atomic propositions that could be added to the model

    3. C

      To determine whether the model satisfies the specified system property

    4. D

      To guarantee that every possible state is reachable

    Correct answer
    C

    To determine whether the model satisfies the specified system property

    Explanation

    CTL formulas specify desired behaviors, and model checking determines whether those properties are true in the design model.

  62. 62

    Which statement best summarizes the role of CTL in embedded-system verification?

    1. A

      CTL describes only the syntax of programming languages

    2. B

      CTL determines hardware cost without examining system behavior

    3. C

      CTL formally expresses temporal requirements and checks them against a transition-system model

    4. D

      CTL replaces the system model with a list of Boolean variables

    Correct answer
    C

    CTL formally expresses temporal requirements and checks them against a transition-system model

    Explanation

    CTL provides a formal language for specifying properties over branching executions and verifying whether a modeled embedded system satisfies them.

Question 1 of 62
Question 1 of 62

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent