Skip to main content

Artificial Intelligence MCQs with Answers

Practice important Artificial Intelligence MCQs with answers and explanations.

Multiple Choice Questions

Q771: The rule mammal2 asserts that the child of a mammal is also a _______.
  • A: Mammal
  • B: Reptile
  • C: Bird
  • D: Fish
View Answer
A

Q772: What is the purpose of the commented-out rule remove-mammals?
  • A: To add mammals
  • B: To retract mammals
  • C: To print mammals
  • D: To assert animals
View Answer
B

Q773: Which command reads user input in CLIPS?
  • A: (read)
  • B: (printout)
  • C: (assert)
  • D: (defrule)
View Answer
A

Q774: In the rule what-is-child, what does (not (child-of ?name ?)) check?
  • A: If the animal has no child
  • B: If the animal has a child
  • C: If the animal is warm-blooded
  • D: If the animal lays eggs
View Answer
A

Q775: What is the operator used in CLIPS prefix notation for logical OR?
  • A: (or)
  • B: (and)
  • C: (not)
  • D: if
View Answer
A

Q776: In the example (defrule take-umbrella (or (weather raining) (weather snowing)) => (assert (umbrella required))), what happens if it is snowing?
  • A: The umbrella is required
  • B: The umbrella is not required
  • C: Nothing happens
  • D: Weather changes
View Answer
A

Q777: Which command adds a fact in CLIPS?
  • A: (assert)
  • B: (retract)
  • C: (printout)
  • D: (defrule)
View Answer
A

Q778: In CLIPS, the command (printout t "animal found: " ?x crlf) is used to _______.
  • A: Print messages
  • B: Assert facts
  • C: Retract facts
  • D: Define rules
View Answer
A

Q779: (child-of cat kitten) means kitten is a child of _______.
  • A: Cat
  • B: Dog
  • C: Turtle
  • D: Duck
View Answer
A

Q780: In CLIPS, variables are prefixed with _______.
  • A: ?
  • B: $
  • C: #
  • D: !
View Answer
A

Test Your Knowledge

Take a timed quiz on Artificial Intelligence

🚀 Start Quiz Now