2.1 Which of the following are syntactically correct Prolog objects? What kinds of object are they (atom,

Question:

2.1 Which of the following are syntactically correct Prolog objects? What kinds of object are they (atom, number, variable, structure)?

(a) Diana

(b) diana

(c) 'Diana'

(d) _diana

(e) 'Diana goes south'

(f) goes( diana, south) (g) 45 (h) 5(X, Y) (i) +(north, west) (j) three( Black(Cats))

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: