1. Home
  2. Explore
  3. Computer Science
  4. Logic and Constraint Reasoning

Study methods

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

Logic and Constraint Reasoning

  • 61Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Modeling Paradigms

What is the value of X1X_1X1​ if X1+X2=10X_1+X_2=10X1​+X2​=10 and X1−X2=4X_1-X_2=4X1​−X2​=4?

61 questions

  1. 1

    What is the value of X1X_1X1​ if X1+X2=10X_1+X_2=10X1​+X2​=10 and X1−X2=4X_1-X_2=4X1​−X2​=4?

    1. A

      141414

    2. B

      888

    3. C

      777

    4. D

      666

    Correct answer
    C

    777

    Explanation

    Adding the equations eliminates X2X_2X2​: 2X1=142X_1=142X1​=14, so X1=7X_1=7X1​=7. This illustrates how using the equations’ structure is more efficient than trying arbitrary values.

  2. 2

    Which sequence best describes the modeling, learning, and inference workflow?

    1. A

      Use data to learn a model, then use the model to answer questions through inference.

    2. B

      Use inference to create data, then use a question to select a learning procedure.

    3. C

      Use a question to produce data, learn an answer, and construct an inference algorithm.

    4. D

      Use a model to generate data, then use inference to learn the model’s parameters.

    Correct answer
    A

    Use data to learn a model, then use the model to answer questions through inference.

    Explanation

    The general workflow is to learn a model from data and then use inference with that model to answer a question.

  3. 3

    What kind of question does inference answer in a search problem?

    1. A

      What is the minimum-cost path?

    2. B

      Which variable values satisfy all the constraints?

    3. C

      Which policy maximizes expected value over time?

    4. D

      Which assignment has the greatest probability given evidence?

    Correct answer
    A

    What is the minimum-cost path?

    Explanation

    For search problems, inference asks for a minimum-cost path.

  4. 4

    How are state-based models such as search problems, MDPs, and games typically represented?

    1. A

      As states connected by actions that incur costs or provide rewards.

    2. B

      As probability distributions over evidence and query variables.

    3. C

      As formulas linked by interpretations that assign truth values.

    4. D

      As variables linked by factors that restrict their values.

    Correct answer
    A

    As states connected by actions that incur costs or provide rewards.

    Explanation

    State-based models represent states as nodes and actions as transitions; transitions may incur costs or provide rewards. Solutions can be paths, contingent paths, or policies.

  5. 5

    What is the central representation in variable-based models such as CSPs and Bayesian networks?

    1. A

      States connected by actions and rewards.

    2. B

      Variables connected by factors or constraints.

    3. C

      Logical symbols connected only by inference rules.

    4. D

      Paths connected by minimum-cost transitions.

    Correct answer
    B

    Variables connected by factors or constraints.

    Explanation

    Variable-based models describe variables and factors that constrain or otherwise relate the values those variables can take.

  6. 6

    Which pairing correctly matches model types with the inference question described in the content?

    1. A

      MDPs and games—maximum-value policy; CSPs—maximum-weight assignment; Bayesian networks—query probability given evidence.

    2. B

      MDPs and games—maximum-weight assignment; CSPs—maximum-value policy; Bayesian networks—minimum-cost path.

    3. C

      MDPs and games—minimum-cost path; CSPs—query probability given evidence; Bayesian networks—maximum-weight assignment.

    4. D

      MDPs and games—query probability given evidence; CSPs—minimum-cost path; Bayesian networks—maximum-value policy.

    Correct answer
    A

    MDPs and games—maximum-value policy; CSPs—maximum-weight assignment; Bayesian networks—query probability given evidence.

    Explanation

    The stated inference tasks are maximum-value policy for MDPs and games, maximum-weight assignment for CSPs, and probabilistic queries conditioned on evidence for Bayesian networks.

  7. 7

    What is a key strength of logical models compared with approaches that focus on uncertainty or learning from large amounts of data?

    1. A

      They automatically learn rules from large datasets without explicit structure.

    2. B

      They guarantee that every inference can be computed efficiently.

    3. C

      They naturally represent uncertain outcomes with probabilities.

    4. D

      They can express complicated knowledge compactly.

    Correct answer
    D

    They can express complicated knowledge compactly.

    Explanation

    Logic’s emphasized strength is expressiveness: it can represent complicated things succinctly. Classical logic is deterministic and rule-based, which limits its natural handling of uncertainty and large amounts of data.

  8. 8

    Which two properties should a logical language have, according to the content?

    1. A

      It should represent knowledge about the world and support reasoning with that knowledge.

    2. B

      It should permit arbitrary expressions and assign each one a unique truth value.

    3. C

      It should represent probabilities and learn all its rules from data.

    4. D

      It should encode only complete assignments and always find optimal paths.

    Correct answer
    A

    It should represent knowledge about the world and support reasoning with that knowledge.

    Explanation

    A logical language must be rich enough to represent knowledge and must also allow that knowledge to be used for reasoning.

  9. 9

    What does the syntax of a logic specify?

    1. A

      Which real-world situations make each formula true.

    2. B

      Which formulas should be learned from a dataset.

    3. C

      Which inference algorithms are computationally fastest.

    4. D

      Which formulas are valid expressions in the language.

    Correct answer
    D

    Which formulas are valid expressions in the language.

    Explanation

    Syntax specifies the valid or grammatical expressions of a logical language.

  10. 10

    What does the semantics of a logic specify?

    1. A

      How formulas are constructed from symbols.

    2. B

      How an inference algorithm chooses its next rule.

    3. C

      Which strings of symbols are grammatically valid.

    4. D

      What formulas mean, including when they are true.

    Correct answer
    D

    What formulas mean, including when they are true.

    Explanation

    Semantics assigns meaning to formulas; in propositional logic, this is defined using an interpretation of formulas under models.

  11. 11

    What is the role of inference rules in a logic?

    1. A

      They define the set of propositional symbols available.

    2. B

      They assign truth values to every possible model.

    3. C

      They specify syntactic operations that derive formulas while preserving semantic validity.

    4. D

      They determine which natural-language sentences can be translated into logic.

    Correct answer
    C

    They specify syntactic operations that derive formulas while preserving semantic validity.

    Explanation

    Inference rules allow formulas to be manipulated syntactically to derive other formulas, with valid rules preserving the relevant semantics.

  12. 12

    Which example shows that two expressions can have different syntax but the same semantics?

    1. A

      2+32+32+3 and 3+23+23+2, which both denote 555.

    2. B

      AAA and A and BA\text{ and }BA and B, which have different truth conditions.

    3. C

      3/23/23/2 in two languages where division has different meanings.

    4. D

      AAA and not A\text{not }Anot A, which always have opposite truth values.

    Correct answer
    A

    2+32+32+3 and 3+23+23+2, which both denote 555.

    Explanation

    The expressions 2+32+32+3 and 3+23+23+2 are written differently but have the same meaning, namely 555.

  13. 13

    Why is syntax alone insufficient to define a language precisely?

    1. A

      Syntax only applies to natural languages, not formal languages.

    2. B

      A formula’s meaning is determined solely by its length.

    3. C

      Syntax cannot specify which symbols are propositional symbols.

    4. D

      The same syntax can have different meanings under different semantics.

    Correct answer
    D

    The same syntax can have different meanings under different semantics.

    Explanation

    The same expression, such as 3/23/23/2, can have different meanings in different languages. A precise language therefore needs both syntax and semantics.

  14. 14

    What trade-off generally occurs as a logical language becomes more expressive?

    1. A

      It becomes more probabilistic, but requires fewer symbols.

    2. B

      It becomes less formal, but more efficient to evaluate.

    3. C

      It can represent more kinds of information, but computation in it becomes harder.

    4. D

      It can represent less information, but computation becomes easier.

    Correct answer
    C

    It can represent more kinds of information, but computation in it becomes harder.

    Explanation

    The content describes a trade-off: more expressive logics can state more, but computation in those languages tends to become harder.

  15. 15

    In propositional logic, what is a model?

    1. A

      A complete assignment of truth values to propositional symbols.

    2. B

      A formula that is true in every possible world.

    3. C

      A probability distribution over possible assignments.

    4. D

      A set of inference rules for transforming formulas.

    Correct answer
    A

    A complete assignment of truth values to propositional symbols.

    Explanation

    A propositional-logic model is a complete assignment of true or false values to the propositional symbols.

  16. 16

    How many models are possible for three propositional symbols, each of which can be true or false?

    1. A

      888

    2. B

      999

    3. C

      666

    4. D

      333

    Correct answer
    A

    888

    Explanation

    Each of the three symbols has two possible truth values, so the number of complete assignments is 23=82^3=823=8.

  17. 17

    What does the interpretation function do in propositional logic?

    1. A

      It takes two formulas and determines whether their syntax is identical.

    2. B

      It takes a formula and a model and returns whether the formula is true in that model.

    3. C

      It takes a knowledge base and returns a probability distribution.

    4. D

      It takes a model and produces a new propositional symbol.

    Correct answer
    B

    It takes a formula and a model and returns whether the formula is true in that model.

    Explanation

    The interpretation function evaluates a formula against a model and returns true or false according to the formula’s semantics.

  18. 18

    How is an atomic propositional symbol interpreted in a model?

    1. A

      By counting how many other symbols occur in the formula.

    2. B

      By checking the truth value assigned to that symbol in the model.

    3. C

      By checking whether the symbol appears in an inference rule.

    4. D

      By calculating the probability of the entire model.

    Correct answer
    B

    By checking the truth value assigned to that symbol in the model.

    Explanation

    The interpretation of an atomic symbol is found by looking up its assigned truth value in the model.

  19. 19

    Under the standard propositional semantics described, when is a conjunction F and GF\text{ and }GF and G true?

    1. A

      Only when both FFF and GGG are true.

    2. B

      Whenever at least one of FFF or GGG is true.

    3. C

      Whenever FFF is false or GGG is true.

    4. D

      Whenever FFF and GGG have the same truth value.

    Correct answer
    A

    Only when both FFF and GGG are true.

    Explanation

    A conjunction is true only when both of its component formulas are true.

  20. 20

    Under the standard propositional semantics described, when is a disjunction F or GF\text{ or }GF or G true?

    1. A

      When FFF is true and GGG is false.

    2. B

      Only when FFF and GGG have the same truth value.

    3. C

      Only when both FFF and GGG are false.

    4. D

      When at least one of FFF or GGG is true.

    Correct answer
    D

    When at least one of FFF or GGG is true.

    Explanation

    A disjunction is true if at least one of its component formulas is true.

  21. 21

    When is an implication F implies GF\text{ implies }GF implies G false under the described truth conditions?

    1. A

      Only when FFF is false and GGG is false.

    2. B

      Whenever FFF and GGG have the same truth value.

    3. C

      Whenever FFF is false or GGG is true.

    4. D

      Only when FFF is true and GGG is false.

    Correct answer
    D

    Only when FFF is true and GGG is false.

    Explanation

    The implication is true if FFF is false or GGG is true; therefore, it is false only when FFF is true and GGG is false.

  22. 22

    When is a biconditional F iff GF\text{ iff }GF iff G true?

    1. A

      When GGG is false, regardless of FFF.

    2. B

      When at least one of FFF and GGG is true.

    3. C

      When FFF and GGG have the same truth value.

    4. D

      When FFF is true, regardless of GGG.

    Correct answer
    C

    When FFF and GGG have the same truth value.

    Explanation

    A biconditional is true exactly when its two sides evaluate to the same truth value.

  23. 23

    How is the formula not F\text{not }Fnot F evaluated in a model?

    1. A

      It is false only when FFF is false.

    2. B

      It is true only when FFF is true.

    3. C

      It has the same truth value as FFF.

    4. D

      It has the opposite truth value from FFF.

    Correct answer
    D

    It has the opposite truth value from FFF.

    Explanation

    Negation reverses the truth value of the formula it applies to.

  24. 24

    What does the set of models M(F)M(F)M(F) represent?

    1. A

      All formulas that can be derived from FFF.

    2. B

      All assignments in which every symbol is false.

    3. C

      All models in which at least one symbol in FFF is true.

    4. D

      All models in which FFF is true.

    Correct answer
    D

    All models in which FFF is true.

    Explanation

    A formula denotes the set of models in which its interpretation is true.

  25. 25

    How can a short logical formula represent a very large set of possible situations?

    1. A

      Its meaning can include many models even though the formula itself is compact.

    2. B

      It assigns a unique probability to every possible formula.

    3. C

      Its syntax changes to include every model explicitly.

    4. D

      It removes the need to define propositional symbols.

    Correct answer
    A

    Its meaning can include many models even though the formula itself is compact.

    Explanation

    A concise formula can denote a set containing many models, potentially an exponentially large number of them. This is one source of logic’s expressive power.

  26. 26

    What is a knowledge base in propositional logic?

    1. A

      A set of formulas representing information known about the world.

    2. B

      A single model assigning values to every symbol.

    3. C

      A list of all formulas that are syntactically invalid.

    4. D

      A probability distribution over evidence variables.

    Correct answer
    A

    A set of formulas representing information known about the world.

    Explanation

    A knowledge base is a set of formulas that represents the facts or information known about the world.

  27. 27

    How is the set of models of a knowledge base determined from its formulas?

    1. A

      By taking only the models of its longest formula.

    2. B

      By selecting the model with the highest probability.

    3. C

      By taking the union of the models of all its formulas.

    4. D

      By taking the intersection of the models of all its formulas.

    Correct answer
    D

    By taking the intersection of the models of all its formulas.

    Explanation

    A model of the knowledge base must satisfy every formula in it, so the knowledge base’s models are the intersection of the formulas’ model sets.

  28. 28

    What generally happens to the possible models when a consistent knowledge base gains an additional formula?

    1. A

      The set of possible models can only stay the same or shrink.

    2. B

      The set of possible models becomes exactly one model.

    3. C

      The set of possible models is replaced by all truth assignments.

    4. D

      The set of possible models must grow.

    Correct answer
    A

    The set of possible models can only stay the same or shrink.

    Explanation

    Adding a formula intersects the existing models with the new formula’s models. This can preserve the set or shrink it, but cannot expand it.

  29. 29

    What does it mean for a knowledge base KBKBKB to entail a formula FFF?

    1. A

      The formula FFF has the same syntax as a formula in KBKBKB.

    2. B

      Every model of KBKBKB is also a model of FFF.

    3. C

      Every model of FFF is also a model of KBKBKB.

    4. D

      The model sets of KBKBKB and FFF are disjoint.

    Correct answer
    B

    Every model of KBKBKB is also a model of FFF.

    Explanation

    Entailment means that every situation satisfying the knowledge base also satisfies FFF, or equivalently that the models of KBKBKB are a subset of the models of FFF.

  30. 30

    If KBKBKB already entails a formula FFF, what happens when FFF is added to the knowledge base?

    1. A

      The possible models become empty, so a contradiction is created.

    2. B

      The possible models expand to include worlds violating KBKBKB.

    3. C

      The possible models remain unchanged, so no new information is added.

    4. D

      The knowledge base becomes probabilistic.

    Correct answer
    C

    The possible models remain unchanged, so no new information is added.

    Explanation

    If KBKBKB entails FFF, all models already allowed by KBKBKB satisfy FFF. Intersecting with the models of FFF therefore leaves the knowledge base’s model set unchanged.

  31. 31

    What does it mean for a knowledge base to contradict a formula FFF?

    1. A

      The formula FFF can be derived by applying an inference rule.

    2. B

      The knowledge base and FFF have no common models.

    3. C

      The knowledge base’s models are a subset of the models of FFF.

    4. D

      The knowledge base and FFF have at least one common model.

    Correct answer
    B

    The knowledge base and FFF have no common models.

    Explanation

    A knowledge base contradicts FFF when no model satisfies both the knowledge base and $F.

  32. 32

    When is the relationship between a knowledge base and a formula described as contingent?

    1. A

      When the formula and knowledge base have identical syntax.

    2. B

      When the formula has no model in common with the knowledge base.

    3. C

      When the formula is already true in every model of the knowledge base.

    4. D

      When their model sets have a nonempty intersection, but adding the formula changes the knowledge base’s models.

    Correct answer
    D

    When their model sets have a nonempty intersection, but adding the formula changes the knowledge base’s models.

    Explanation

    Contingency means the formula adds nontrivial information: the intersection is neither empty nor the original set of knowledge-base models.

  33. 33

    Which statement captures the relationship between contradiction and entailment?

    1. A

      KBKBKB contradicts FFF exactly when FFF entails KBKBKB.

    2. B

      KBKBKB contradicts FFF exactly when KBKBKB entails FFF.

    3. C

      KBKBKB contradicts FFF exactly when KBKBKB entails not F\text{not }Fnot F.

    4. D

      KBKBKB contradicts FFF exactly when FFF and KBKBKB have identical models.

    Correct answer
    C

    KBKBKB contradicts FFF exactly when KBKBKB entails not F\text{not }Fnot F.

    Explanation

    If the knowledge base rules out every model in which FFF is true, then it entails not F\text{not }Fnot F; this is equivalent to contradicting FFF.

  34. 34

    What response should a yes-or-no query operation give when the knowledge base entails the queried formula?

    1. A

      I do not know, because some consistent models satisfy it and others do not.

    2. B

      Yes, because the formula is true in every model consistent with the knowledge base.

    3. C

      No, because the formula is false in every model consistent with the knowledge base.

    4. D

      The knowledge base should be discarded because it contains no models.

    Correct answer
    B

    Yes, because the formula is true in every model consistent with the knowledge base.

    Explanation

    Entailment supports a definite yes: every model compatible with the knowledge base makes the queried formula true.

  35. 35

    What response should a yes-or-no query operation give when the queried formula is contingent with respect to the knowledge base?

    1. A

      I do not know, because the knowledge base permits both satisfying and non-satisfying situations.

    2. B

      No, because the formula is false in every possible model.

    3. C

      Yes, because the formula is true in every possible model.

    4. D

      The formula must be added as a fact before it can be evaluated.

    Correct answer
    A

    I do not know, because the knowledge base permits both satisfying and non-satisfying situations.

    Explanation

    In the contingent case, the knowledge base neither entails the formula nor contradicts it, so the appropriate response is that the answer is unknown.

  36. 36

    How can the probability of a formula FFF given a knowledge base KBKBKB be expressed using events?

    1. A

      As P(F)+P(KB)P(F)+P(KB)P(F)+P(KB).

    2. B

      As P(KB)/P(F∩KB)P(KB)/P(F\cap KB)P(KB)/P(F∩KB).

    3. C

      As P(F∪KB)/P(F)P(F\cup KB)/P(F)P(F∪KB)/P(F).

    4. D

      As P(F∩KB)/P(KB)P(F\cap KB)/P(KB)P(F∩KB)/P(KB).

    Correct answer
    D

    As P(F∩KB)/P(KB)P(F\cap KB)/P(KB)P(F∩KB)/P(KB).

    Explanation

    Treating the knowledge base and formula as events, the conditional probability is P(F∩KB)/P(KB)P(F\cap KB)/P(KB)P(F∩KB)/P(KB). This assumes a probability distribution over complete assignments.

  37. 37

    In the probabilistic generalization, what does a conditional probability of 000 or 111 indicate?

    1. A

      Neither value has a corresponding logical interpretation.

    2. B

      000 indicates contradiction and 111 indicates entailment.

    3. C

      Both values indicate contingency.

    4. D

      000 indicates entailment and 111 indicates contradiction.

    Correct answer
    B

    000 indicates contradiction and 111 indicates entailment.

    Explanation

    A conditional probability of 000 means the formula has no probability mass within the knowledge-base event, while 111 means it holds throughout that event.

  38. 38

    What does it mean for a knowledge base to be satisfiable?

    1. A

      The knowledge base contains no propositional symbols.

    2. B

      At least one model satisfies every formula in the knowledge base.

    3. C

      Every formula in the knowledge base can be derived by modus ponens.

    4. D

      Every possible model satisfies every formula in the knowledge base.

    Correct answer
    B

    At least one model satisfies every formula in the knowledge base.

    Explanation

    A knowledge base is satisfiable if its set of models is nonempty, meaning there is at least one assignment that satisfies all its formulas.

  39. 39

    How can an entailment query KB⊨FKB\models FKB⊨F be tested using satisfiability?

    1. A

      Test whether KB∪{not F}KB\cup\{\text{not }F\}KB∪{not F} is satisfiable; if it is not, then KBKBKB entails FFF.

    2. B

      Test whether FFF alone is satisfiable; if it is, then KBKBKB entails FFF.

    3. C

      Test whether KB∪{F}KB\cup\{F\}KB∪{F} is satisfiable; if it is, then KBKBKB entails FFF.

    4. D

      Test whether KBKBKB is satisfiable; if it is, then KBKBKB entails every formula.

    Correct answer
    A

    Test whether KB∪{not F}KB\cup\{\text{not }F\}KB∪{not F} is satisfiable; if it is not, then KBKBKB entails FFF.

    Explanation

    If there is no model satisfying both KBKBKB and not F\text{not }Fnot F, then every model of KBKBKB satisfies FFF, so KBKBKB entails FFF.

  40. 40

    How can entailment, contradiction, or contingency be determined using satisfiability checks?

    1. A

      Check satisfiability of FFF alone and then count its symbols.

    2. B

      Check satisfiability of KBKBKB once; a satisfiable result always means entailment.

    3. C

      Check satisfiability of KB∪{not F}KB\cup\{\text{not }F\}KB∪{not F} first, then, if needed, check KB∪{F}KB\cup\{F\}KB∪{F}.

    4. D

      Check satisfiability of KB∪{F,not F}KB\cup\{F,\text{not }F\}KB∪{F,not F} and use the number of formulas to classify it.

    Correct answer
    C

    Check satisfiability of KB∪{not F}KB\cup\{\text{not }F\}KB∪{not F} first, then, if needed, check KB∪{F}KB\cup\{F\}KB∪{F}.

    Explanation

    First check whether KBKBKB together with not F\text{not }Fnot F is satisfiable. If not, KBKBKB entails FFF. If it is, check whether KBKBKB together with FFF is satisfiable: if not, there is a contradiction; if so, the relationship is contingent.

  41. 41

    How does propositional satisfiability map to a constraint satisfaction problem?

    1. A

      Propositional symbols become constraints, formulas become variables, and a model is an optimal path.

    2. B

      Evidence variables become symbols, formulas become probabilities, and constraints become models.

    3. C

      Propositional symbols become variables, formulas become constraints, and a satisfying assignment is a model.

    4. D

      Models become variables, inference rules become values, and formulas become rewards.

    Correct answer
    C

    Propositional symbols become variables, formulas become constraints, and a satisfying assignment is a model.

    Explanation

    The SAT-to-CSP mapping treats propositional symbols as variables, formulas as constraints, and a satisfying assignment as a model.

  42. 42

    What does model checking do in this propositional-logic setting?

    1. A

      It determines whether a formula is grammatically valid.

    2. B

      It finds the maximum-probability model of a Bayesian network.

    3. C

      It learns propositional symbols from a collection of examples.

    4. D

      It checks whether a knowledge base has a satisfying model.

    Correct answer
    D

    It checks whether a knowledge base has a satisfying model.

    Explanation

    Model checking takes a knowledge base and determines whether a satisfying model exists.

  43. 43

    Which description correctly distinguishes DPLL from WalkSAT in the content?

    1. A

      DPLL is randomized local search; WalkSAT is exact backtracking without pruning.

    2. B

      DPLL is backtracking search with structure-based pruning; WalkSAT is randomized local search.

    3. C

      DPLL performs variable elimination; WalkSAT performs maximum-likelihood estimation.

    4. D

      DPLL learns formulas from data; WalkSAT evaluates probabilistic evidence.

    Correct answer
    B

    DPLL is backtracking search with structure-based pruning; WalkSAT is randomized local search.

    Explanation

    DPLL is described as backtracking search with pruning that uses formula structure. WalkSAT is described as randomized local search.

  44. 44

    What is the syntactic form of an inference rule?

    1. A

      Given premises that are formulas, derive a conclusion formula when the premises match.

    2. B

      Given a probability distribution, select the assignment with minimum cost.

    3. C

      Given a model, replace every true symbol with a false one.

    4. D

      Given a formula, change its semantics while preserving its syntax.

    Correct answer
    A

    Given premises that are formulas, derive a conclusion formula when the premises match.

    Explanation

    An inference rule specifies that if a set of premise formulas holds, another formula may be added as a conclusion.

  45. 45

    Which application of modus ponens is valid?

    1. A

      From P or QP\text{ or }QP or Q and PPP, derive not Q\text{not }Qnot Q.

    2. B

      From P implies QP\text{ implies }QP implies Q alone, derive QQQ.

    3. C

      From QQQ and P implies QP\text{ implies }QP implies Q, derive PPP.

    4. D

      From PPP and P implies QP\text{ implies }QP implies Q, derive QQQ.

    Correct answer
    D

    From PPP and P implies QP\text{ implies }QP implies Q, derive QQQ.

    Explanation

    Modus ponens derives QQQ from the premises PPP and P implies QP\text{ implies }QP implies Q.

  46. 46

    What is the key difference between KB⊨FKB\models FKB⊨F and KB⊢FKB\vdash FKB⊢F?

    1. A

      Entailment and derivation are identical for every set of inference rules.

    2. B

      Entailment is defined through model sets, while derivation is defined by mechanically applying inference rules.

    3. C

      Entailment requires a proof, while derivation requires a complete assignment.

    4. D

      Entailment is defined by syntax, while derivation is defined by probabilities.

    Correct answer
    B

    Entailment is defined through model sets, while derivation is defined by mechanically applying inference rules.

    Explanation

    Entailment is semantic: it concerns whether all models of KBKBKB satisfy FFF. Derivation is syntactic: it concerns whether the chosen inference rules can produce FFF from KBKBKB.

  47. 47

    How does the forward-inference procedure described use a set of inference rules?

    1. A

      It repeatedly looks for matching premises and adds their conclusions until no new formulas are added.

    2. B

      It repeatedly changes the semantics of formulas until they agree.

    3. C

      It chooses one formula and assigns it a probability.

    4. D

      It removes formulas until only one model remains.

    Correct answer
    A

    It repeatedly looks for matching premises and adds their conclusions until no new formulas are added.

    Explanation

    The procedure repeatedly finds formulas matching the premises of a rule, adds the resulting conclusion to the knowledge base, and stops when no more changes occur.

  48. 48

    Why can syntax-based inference rules be useful when new propositional symbols appear?

    1. A

      Inference rules eliminate the need for a knowledge base.

    2. B

      A new symbol makes every existing formula satisfiable.

    3. C

      Rules can operate on the formulas that appear, without requiring a fixed list of all symbols in advance.

    4. D

      New symbols automatically receive truth values from the interpretation function.

    Correct answer
    C

    Rules can operate on the formulas that appear, without requiring a fixed list of all symbols in advance.

    Explanation

    Inference rules operate directly on formula syntax, so a newly introduced concept can be treated as another symbol in applicable rules.

  49. 49

    What does soundness mean for a set of inference rules?

    1. A

      The rules always terminate after exactly one application.

    2. B

      Every formula entailed by the knowledge base is derivable by the rules.

    3. C

      Every formula derivable by the rules is entailed by the knowledge base.

    4. D

      The rules derive every syntactically valid formula.

    Correct answer
    C

    Every formula derivable by the rules is entailed by the knowledge base.

    Explanation

    Soundness means that applying the rules never derives a formula that is not semantically entailed by the knowledge base.

  50. 50

    What does completeness mean for a set of inference rules?

    1. A

      Every formula in the language is true in some model.

    2. B

      Every derivable formula is guaranteed to be entailed by the knowledge base.

    3. C

      Every formula entailed by the knowledge base can be derived using the rules.

    4. D

      The rules can decide the truth of every natural-language sentence.

    Correct answer
    C

    Every formula entailed by the knowledge base can be derived using the rules.

    Explanation

    Completeness means that the rules can derive all formulas that are semantically entailed by the knowledge base.

  51. 51

    Which statement correctly captures the difference between soundness and completeness?

    1. A

      Soundness means every formula has a model; completeness means every model has a formula.

    2. B

      Soundness means deriving the whole truth; completeness means deriving nothing but the truth.

    3. C

      Soundness means the rules are fast; completeness means the formulas are short.

    4. D

      Soundness means deriving nothing but the truth; completeness means deriving the whole truth.

    Correct answer
    D

    Soundness means deriving nothing but the truth; completeness means deriving the whole truth.

    Explanation

    Soundness rules out erroneous conclusions, while completeness ensures that all entailed conclusions can be derived.

  52. 52

    Why is modus ponens alone incomplete for general propositional logic?

    1. A

      It is unsound when an implication is used.

    2. B

      It requires probabilities for every propositional symbol.

    3. C

      It cannot derive any atomic symbols from premises.

    4. D

      It cannot in general reason through disjunctions such as P or QP\text{ or }QP or Q.

    Correct answer
    D

    It cannot in general reason through disjunctions such as P or QP\text{ or }QP or Q.

    Explanation

    Modus ponens does not provide a general way to reason about disjunctions. For example, it cannot use PPP and (P or Q) implies R(P\text{ or }Q)\text{ implies }R(P or Q) implies R to derive RRR, even though RRR is entailed.

  53. 53

    Why is soundness generally important even when a rule system is incomplete?

    1. A

      An incomplete system cannot have any valid models.

    2. B

      A sound system guarantees that every possible conclusion is found.

    3. C

      An incomplete system may miss some true conclusions, but a sound system avoids deriving false ones.

    4. D

      Soundness makes every inference computationally efficient.

    Correct answer
    C

    An incomplete system may miss some true conclusions, but a sound system avoids deriving false ones.

    Explanation

    An incomplete system may fail to derive some entailed formulas, but if it is sound, anything it does derive is still valid.

  54. 54

    What is the form of a definite clause in propositional logic?

    1. A

      A conjunction of propositional symbols implies a single propositional symbol.

    2. B

      A single propositional symbol implies a disjunction of symbols.

    3. C

      A formula is equivalent to a probability distribution.

    4. D

      A disjunction of symbols implies a conjunction of symbols.

    Correct answer
    A

    A conjunction of propositional symbols implies a single propositional symbol.

    Explanation

    A definite clause has the form P1 and ⋯ and Pk implies QP_1\text{ and }\cdots\text{ and }P_k\text{ implies }QP1​ and ⋯ and Pk​ implies Q, where the consequent QQQ is a single propositional symbol.

  55. 55

    Which formula is not a definite clause under the stated definition?

    1. A

      rain and snow implies traffic or peaceful\text{rain and snow implies traffic or peaceful}rain and snow implies traffic or peaceful.

    2. B

      rain and snow implies traffic\text{rain and snow implies traffic}rain and snow implies traffic.

    3. C

      rain implies wet\text{rain implies wet}rain implies wet.

    4. D

      weekday implies traffic\text{weekday implies traffic}weekday implies traffic.

    Correct answer
    A

    rain and snow implies traffic or peaceful\text{rain and snow implies traffic or peaceful}rain and snow implies traffic or peaceful.

    Explanation

    A definite clause must have a single propositional symbol on the right-hand side. A disjunction such as traffic or peaceful\text{traffic or peaceful}traffic or peaceful is not allowed there.

  56. 56

    What is a horn clause, as described in the content?

    1. A

      A definite clause or a goal clause of the form P1 and ⋯ and Pk implies falseP_1\text{ and }\cdots\text{ and }P_k\text{ implies false}P1​ and ⋯ and Pk​ implies false.

    2. B

      Any formula containing an implication, regardless of its other structure.

    3. C

      A formula whose consequent must contain at least two propositional symbols.

    4. D

      A formula that is true in exactly one model.

    Correct answer
    A

    A definite clause or a goal clause of the form P1 and ⋯ and Pk implies falseP_1\text{ and }\cdots\text{ and }P_k\text{ implies false}P1​ and ⋯ and Pk​ implies false.

    Explanation

    A horn clause is either a definite clause or a goal clause, which has a conjunction of symbols implying false.

  57. 57

    How is modus ponens generalized for a definite clause with multiple premises?

    1. A

      If all symbols P1,…,PkP_1,\ldots,P_kP1​,…,Pk​ are known and their conjunction implies QQQ, derive QQQ.

    2. B

      If any one of P1,…,PkP_1,\ldots,P_kP1​,…,Pk​ is known, derive every symbol in the clause.

    3. C

      If QQQ is known and the premises imply QQQ, derive all the premises.

    4. D

      If the premises are unknown, derive QQQ whenever the clause is satisfiable.

    Correct answer
    A

    If all symbols P1,…,PkP_1,\ldots,P_kP1​,…,Pk​ are known and their conjunction implies QQQ, derive QQQ.

    Explanation

    Generalized modus ponens matches all the premise symbols of a definite clause; when they are all present in the knowledge base, it derives the single consequent QQQ.

  58. 58

    What completeness property holds for modus ponens when the knowledge base contains only Horn clauses?

    1. A

      Modus ponens becomes incomplete even for entailed propositional symbols.

    2. B

      Every arbitrary propositional formula can be derived by modus ponens.

    3. C

      If a propositional symbol is entailed by the knowledge base, modus ponens can derive it.

    4. D

      Every model of the knowledge base must assign true to every symbol.

    Correct answer
    C

    If a propositional symbol is entailed by the knowledge base, modus ponens can derive it.

    Explanation

    For knowledge bases containing only Horn clauses, generalized modus ponens is complete for deriving entailed propositional symbols; it is also sound.

  59. 59

    Why can modus ponens handle definite clauses more directly than clauses with a disjunctive consequent?

    1. A

      A definite clause has no premises, while a disjunctive clause always has several models.

    2. B

      A definite clause assigns values to every symbol, while a disjunctive clause assigns none.

    3. C

      A definite clause is probabilistic, while a disjunctive clause is deterministic.

    4. D

      A definite clause identifies one symbol to add once all its premises are known, while a disjunction leaves alternatives to reason about.

    Correct answer
    D

    A definite clause identifies one symbol to add once all its premises are known, while a disjunction leaves alternatives to reason about.

    Explanation

    With a single consequent, the rule can add that symbol when all premises are known. A disjunctive consequent presents alternatives, so simply adding one symbol would not be justified.

  60. 60

    How can a rule with a conjunction in its consequent sometimes be handled using definite clauses?

    1. A

      Treat the conjunction as a single new truth value and ignore its components.

    2. B

      Convert the rule into a probability distribution over its consequents.

    3. C

      Rewrite it as separate rules with the same premises and one consequent symbol apiece.

    4. D

      Replace its premises with a disjunction and retain the conjunction as its consequent.

    Correct answer
    C

    Rewrite it as separate rules with the same premises and one consequent symbol apiece.

    Explanation

    A rule such as A implies (B and C)A\text{ implies }(B\text{ and }C)A implies (B and C) is equivalent to the pair A implies BA\text{ implies }BA implies B and A implies CA\text{ implies }CA implies C, each of which is a definite clause.

  61. 61

    What role does resolution play in relation to the limitations of modus ponens?

    1. A

      It replaces semantic models with probability distributions.

    2. B

      It makes every inference rule sound without checking its premises.

    3. C

      It restricts propositional logic to atomic symbols only.

    4. D

      It is a more powerful inference rule that can handle more general propositional inferences, including disjunctions.

    Correct answer
    D

    It is a more powerful inference rule that can handle more general propositional inferences, including disjunctions.

    Explanation

    Resolution is presented as a more powerful inference rule for handling arbitrary propositional inferences that modus ponens alone cannot derive.

Question 1 of 61
Question 1 of 61

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent