Which one of the following describes the syntax of prolog program?
Which one of the following describes the syntax of prolog program?
I. Rules and facts are terminated by full stop(.)
II. Rules and facts are terminated by semicolon (;)
III. Variables names must start with upper case alphabets
IV. Variables names must start with lower case alphabets.
Codes :
Show answerHide answer
Correct answer: (C) I, III
Explanation
Prolog variables begin with an upper case letter, while predicate names, function names and the names for objects must begin with a lower case letter; rules and facts are terminated by a full stop (.). So the right answer is option (c).