✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Consider the following Prolog program:
test(X,Y) :- ( X > 0 -> Y = positive ; Y = nonpositive ).
What value(s), if any, will be returned for Y by the following query?
?- test(3,Y).