Prolog quiz 2

The following Prolog program is consulted by the Prolog interpreter.

vertical(seg(point(X,Y),point(X,Y1))).
horizontal(seg(point(X,Y),point(X1,Y))).


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