Quia Home Home FAQ About Log in Subscribe now 30-day free trial

Prolog quiz 4

The following Prolog program is consulted by the Prolog interpreter.

colour(b1,red).
colour(b2,blue).
colour(b3,yellow).
shape(b1,square).
shape(b2,circle).
shape(b3,square).
size(b1,small).
size(b2,small).
size(b3,large).


What will be the outcome of each of the following queries?




This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities