adplus-dvertising
frame-decoration

Question

Given the following set of prolog clauses:

father(X, Y):
parent(X, Y),
male(X),
parent(Sally, Bob),
parent(Jim, Bob),
parent(Alice, Jane),
parent(Thomas, Jane),
male(Bob),
male(Jim),
female(Salley),
female(Alice).

How many atoms are matched to the variable ‘X’ before the query
father(X, Jane) reports a Result?

a.

1

b.

2

c.

3

d.

4

Answer: (a).1

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Given the following set of prolog clauses: father(X, Y): parent(X, Y), male(X), parent(Sally, Bob), parent(Jim, Bob), parent(Alice, Jane), parent(Thomas,...

Similar Questions

Discover Related MCQs

Q. Forward chaining systems are ............. where as backward chaining systems are ................

Q. A horn clause is ......................

Q. In Propositional Logic, given P and P→Q, we can infer .................

Q. Reasoning strategies used in expert systems include ...............

Q. Language model used in LISP is .................

Q. In constraint satisfaction problem, constraints can be stated as ...................

Q. Consider the two class classification task that consists of the following points :

Class C1: [-1, -1], [-1, 1], [1, -1]
Class C2: [1, 1]

The decision boundary between the two classes C1 and C2 using single perceptron is given by :

Q. How many different truth tables of the compound propositions are there that involve the propositions p & q ?

Q. The notation ∃!xp(x) denotes the proposition "there exists a unique x such that P(x) is true".
Give the truth values of the following statements :

I. ∃!xP(x) → ∃xP(x)
II. ∃!x ¬ P(x) → ¬∀xp(x)

Q. Give a compound proposition involving propositions p, q and r that is true when exactly two of p, q and r are true and is false otherwise.

Q. The quantification ∃!x P(x) denotes the proposition “There exists a unique x such that P(x) is true”, express the quantification using universal and existential quantifications and logical operators:

Q. Which of the following is a correct predicate logic statement for “Every Natural number has one successor” ?

Q. α – β cutoffs are applied to .............

Q. Assume that each alphabet can have a value between 0 to 9 in a cryptoarithmetic problem 
   CROSS+ROADS
--------------
DANGER
--------------
Which of the following statement is true ?

(i) No two alphabets can have the same numeric value.
(ii) Any two alphabets may have the same numeric value.
(iii) D = 0
(iv) D = 1

Q. Which of the following is not a part of an expert system shell ?

Q. The Blocks World Problem in Artificial Intelligence is normally discussed to explain a ..................

Q. Means-Ends Analysis process centres around the detection of difference between the current state and the goal state. Once such a difference is found, then to reduce the difference one applies ..................

Q. If an artificial variable is present in the ‘basic variable’ of optimal simplex table then the solution is .................

Q. An optimal assignment requires that the minimum number of horizontal and vertical lines that can be drawn to cover all zeros be equal to the number of

Q. The tracing model in Prolog describes program execution in terms of certain events. These events are