Subject
Computer Science
Topic
Artificial Intelligence
Which of the following is an example of a PROLOG query?
Which of the following is an example of a PROLOG query?
a)
if X is human then write(X)b)
X := human;c)
procedure human(X)d)
?- human(X).Explanation
A query asks PROLOG to find values of X for which human(X) is true.Related questions
In the figure, let P=True and Q=False. What is the truth value of P and Q?In the figure, let P=False and Q=True. What is the truth value of P or Q?In the figure, let P=True and Q=False. What is the truth value of P implies Q?In the figure, let P=False and Q=False. What is the truth value of P implies Q?Let P=True, Q=False, and R=True. What is the truth value of P biconditional (Q or R)?Facts contain Rain and the rule Rain implies Wet. Which conclusion follows by modus ponens?A knowledge base has A implies B and not B. What follows by modus tollens?Clauses are P or Q and not P. What resolvent is produced on P?
