Question 76Asked in UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)

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 :
  1. AI, II
  2. BIII, IV
  3. CI, III
  4. DII, IV
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).

From UGC NET Computer Science PYQ, June 2014 (Paper II & III, Selected Questions)

This is question 76 of UGC NET Computer Science PYQ, June 2014 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.