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+3f) X is 3+Y.g) X = 3+5.h) X is f(3+5).i) X=Yj) X=X
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here