subject

1. Assuming the parent relation as defined in the following piece of Prolog code, what will be Prolog's answers to the following questions?
parent (pam, bob).
parent (tom, bob).
parent (tom, liz).
parent (bob, ann).
parent (bob, pat).
parent (pat, jim).
a) ?- parent (jim, x).
b) ?- parent (X, jim).
c) ?- parent (pam, X),parent (X, pat).
d) ?- parent (pam, X), parent (X, Y), parent (Y, jim).
2. Formulate in Prolog the following questions about the parent relation:
a) Who is Pat's parent?
b) Does Liz have a child?
c) Who is Pat's grandparent?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:40
Mary's manager told her she should insert a graphic into her documentwrite mary a brief note describing how to insert a graphicin a word processing document.
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
Which law requires employers to provide safe working environments for their employees? a. civil rights act b. fair labor standards act c. occupational safety and health act d. wagner act
Answers: 1
question
Computers and Technology, 22.06.2019 17:40
Gabe wants to move text from one document to another document. he should copy the text, paste the text, and open the new document highlight the text, select the cut command, move to the new document, make sure the cursor is in the correct location, and select the paste command select the save as command, navigate to the new document, and click save highlight the text, open the new document, and press ctrl and v
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
Which is the correct sequence of steps to set up a document in landscape orientation? a. select page setup from the file menu. then click the margins tab and select landscape. b. select page setup from the edit menu. then click the margins tab and select landscape. c. select page setup from the insert menu. then click the margins tab and select landscape. d. select page setup from the format menu. then click the margins tab and select landscape
Answers: 1
You know the right answer?
1. Assuming the parent relation as defined in the following piece of Prolog code, what will be Prol...
Questions
question
Mathematics, 14.05.2021 15:40
question
Mathematics, 14.05.2021 15:40
question
Business, 14.05.2021 15:40
question
Spanish, 14.05.2021 15:40
Questions on the website: 13722361