Artificial Intelligence (2180703) MCQ

MCQs of Introduction to Prolog

MCQ No - 1

what are the Sector Where Prolog Programming Language Is Used?

(A) Automated reasoning
(B) Machine learning
(C) Robot planning
(D) all of the above

D
MCQ No - 2

dog('Buddy', likes('Buddy', toast)). - This statement is

(A) Rule & Horn Clause
(B) Fact & Horn Clause
(C) Horn Clause with Head and body
(D) Not a Horn clause

B
MCQ No - 3

Which one of the following is not a variable?

(A) X_yz
(B) g_23A
(C) '_Xyz'
(D) B & C both

D
MCQ No - 4

Which one from the options would return true/yes for given prolog program?
boy(john,123).
girl(jane,234).
student(john,123).

(A) ?- girl(jane,x).
(B) ?- boy('john',123).
(C) All of above.
(D) None of above

B
MCQ No - 5

A prolog query can be made up of only two subgoals.

(A) TRUE
(B) FALSE

B