edited by
4,012 views
4 4 votes

Given the following set of prolog clauses:

father(X,Y) :
parent(X,Y),
male(X),
parent(Sally, Bob),
parent(Jim, Bob),
parent(Alice, 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?

  1. $1$
  2. $2$
  3. $3$
  4. $4$

1 Answer

Answer:
Position:
Show:

Related questions

1 1 vote
0 0 answers
1.3k
1.3k views
Sanjay Sharma asked Jun 1, 2016
1,322 views
The tracing model in Prolog describes program execution in terms of certain events. These events arecall and exitcall and failcall, exit and redocall, exit, redo and fail
4 4 votes
5 answers 5 answers
4.5k
4.5k views
go_editor asked Aug 11, 2016
4,459 views
In propositional logic, given $P$ and $P \rightarrow Q$, we can infer ________$\sim Q$$Q$$P \wedge Q$$\sim P \wedge Q$
2 2 votes
2 2 answers
2.8k
2.8k views
go_editor asked Aug 11, 2016
2,835 views
What will be the output of the following Unix command?$\text{\$ rm chap0[1-3]}$Remove file $\text{chap0[1-3]}$Remove file $\text{chap01, chap02, chap03}$Remove file $\tex...
2 2 votes
1 1 answer
3.9k
3.9k views
go_editor asked Aug 11, 2016
3,912 views
In Unix, the command to enable execution permission for file "mylife" by all is_____Chmod ugo $+$ X mylifeChmod a $+$ X mylifeChmod $+$ X mylifeAll of the above