search
Log In

Recent questions tagged prolog

0 votes
2 answers
1
Which one of the following describes the syntax of prolog program? Rules and facts are terminated by full stop(.) Rules and facts are terminated by semi colon(;) Variables names must start with upper case alphabets. Variables names must start with lower case alphabets. I, II III, IV I, III II, IV
asked Jan 5, 2017 in Artificial Intelligence jothee 777 views
1 vote
3 answers
2
Which formal system provides the semantic foundation for Prolog ? Predicate calculus Lambda calculus Hoare logic Propositional logic
asked Oct 5, 2016 in Others makhdoom ghaya 1.5k views
4 votes
1 answer
3
Given the following set of prolog clauses: father(X,Y) : parent(X,Y), male(X), parent(Sally, Bob), parent(Jim, Bob), parent(Alice, Jane), male(Bob), male(Jim), female(Salley), female(Alice) How many atoms are matched to the variable 'X' before the query father(X, Jane) reports a Result? $1$ $2$ $3$ $4$
asked Aug 9, 2016 in Mathematical Logic jothee 1.6k views
3 votes
1 answer
4
Which one of the following is the correct implementation of the meta-predicate “not” in PROLOG (Here G represents a goal)? not(G):- !, call(G), fail. not(G). not(G):- call(G), !, fail. not(G). not(G):- call(G), fail, !, not(G). not(G):- call(G), !, fail.not(G):- !.
asked Jul 19, 2016 in Artificial Intelligence jothee 643 views
To see more, click for the full list of questions or popular tags.
...