1.True or False: a) “12abc” is a valid Atom name in prolog. b) “123” is a valid Integer name in prolog. c) “_” is a valid variable name in prolog. d) “_boy” is a valid Atom name in prolog. e) _123 is...



1.True or False:


a) “12abc” is a valid Atom name in prolog.
b) “123” is a valid Integer name in prolog.
c) “_” is a valid variable name in prolog.
d) “_boy” is a valid Atom name in prolog.
e) _123 is a valid Variable name in prolog.
f) “xmen” is a valid Variable name in prolog.
g) “fred%nezar” is a valid Atom name in prolog.





2.What does Prolog return to the following queries?


a) sum (X+Y)= sum(2+3)
b) sum(2+3) =sum(X+Y)
c) sum(X) = sum(2+3)
d) sum(X+Y) = sum(3)
e) X is 2+3
f) X is 3+Y.
g) X = 3+5.
h) X is f(3+5).
i) X=Y
j) X=X



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here