Computer Science, asked by somasekharreddy, 1 year ago

Mark correct option(s) with respect to the following Prolog program?

boss(ashish,bhupendra)
boss(bhupendra,chayan)
boss(divya,chayan)
scapegoat(X) :- not(boss(X,Y))

a) Program returns true for the query scapegoat(chayan) .
b)Program returns false for the query scapegoat(chayan).
c)Program returns false for the query boss(chayan,Y).
d)Program can return only the first matching pair when the query boss(X,Y) is fired.
e)Program can return all the matching pairs when the query boss(X,Y) is fired.

Answers

Answered by Anonymous
1
D is right answer in ur questions

somasekharreddy: give mutliple answers pls
Answered by Secondman
0

"Prolog is the leading fabrication project management answer for haulers and other firms.

It gives us the whole record of governing the project and its information from top to toe in the office.

The two types are prolog languages used here are logic programming and symbolic computation.

McCarthy developed two languages which is not used widely and had limited processing.  

But the logic programming and symbolic computation languages are most important and widely used .

Three options are correct for this question( a, c, and e)

"

Similar questions