InterviewSolution
Saved Bookmarks
| 1. |
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 queryfather(X, Jane) reports a Result ?(A) 1(B) 2(C) 3(D) No option is correct. |
| Answer» | |