Skip to main content

Artificial Intelligence MCQs with Answers

Practice important Artificial Intelligence MCQs with answers and explanations.

Multiple Choice Questions

Q781: The symbol $? in CLIPS is used for _______.
  • A: Multi-field wildcard variable
  • B: Single variable
  • C: Constant
  • D: Operator
View Answer
A

Q782: The command to remove a fact in CLIPS is _______.
  • A: (retract)
  • B: (assert)
  • C: (printout)
  • D: (defrule)
View Answer
A

Q783: The CLIPS command (assert (mammal ?young)) is used to _______.
  • A: Assert that the child is a mammal
  • B: Remove the child from facts
  • C: Print the child’s name
  • D: Stop the program
View Answer
A

Q784: In CLIPS, (defrule remove-mammals ?fact <- (mammal ?) => (printout t "retracting " ?fact crlf) (retract ?fact)) is used to _______.
  • A: Remove mammal facts
  • B: Add mammal facts
  • C: Print mammal facts
  • D: Read input
View Answer
A

Q785: The keyword in CLIPS to load facts and rules from a file is _______.
  • A: (load)
  • B: (save)
  • C: (printout)
  • D: (assert)
View Answer
A

Q786: In the CLIPS example, (deffacts startup (weather raining)) defines a fact about _______.
  • A: Weather
  • B: Animals
  • C: Child
  • D: Rule
View Answer
A

Q787: The animal 'dog' is warm-blooded and does not lay eggs, so according to the rules it is classified as a _______.
  • A: Mammal
  • B: Bird
  • C: Reptile
  • D: Fish
View Answer
A

Q788: If (weather snowing) is true, then the fact (umbrella required) will be _______.
  • A: (asserted)
  • B: (retracted)
  • C: Ignored
  • D: Deleted
View Answer
A

Q789: What is the initial task asserted when the diagnostic system starts?
  • A: task begin
  • B: task test_cranking_system
  • C: task test_battery
  • D: task test_starting_system
View Answer
A

Q790: In the 'ask-question' function, what happens if the user inputs 'q'?
  • A: The system clears
  • B: The system asks again
  • C: The system asserts task done
  • D: The system asserts a problem
View Answer
A

Test Your Knowledge

Take a timed quiz on Artificial Intelligence

🚀 Start Quiz Now