Artificial Intelligence MCQs with Answers
Practice important Artificial Intelligence MCQs with answers and explanations.
Multiple Choice Questions
Q761: Which command is used to load a file containing saved constructs in CLIPS?
- A: (load "filename.clp")
- B: (save "filename.clp")
- C: (printout)
- D: (set-break)
View Answer
A
Q762: To save all currently loaded constructs in CLIPS to a file, which command is used?
- A: (save "filename.clp")
- B: (load "filename.clp")
- C: (remove-break)
- D: (show-breaks)
View Answer
A
Q763: In CLIPS, variables used on the left-hand side of a rule are preceded by which symbol?
- A: ?
- B: $
- C: #
- D: @
View Answer
A
Q764: What does the variable $?name represent in CLIPS pattern matching?
- A: A multi-field wildcard variable
- B: Single field variable
- C: A constant
- D: Function call
View Answer
A
Q765: In CLIPS, anything after a semicolon (;) is considered a _______.
- A: Code
- B: Command
- C: Comment
- D: Function
View Answer
C
Q766: What command is used to define initial facts in CLIPS?
- A: (deffacts)
- B: (defrule)
- C: (assert)
- D: (printout)
View Answer
A
Q767: Which of the following is a fact defined in (deffacts startup)?
- A: (animal dog)
- B: (mammal dog)
- C: (child-of dog puppy)
- D: (lays-eggs cat)
View Answer
A
Q768: What does the rule (defrule animal (animal ?x) => (printout t "animal found: " ?x crlf)) do?
- A: Prints the name of animals
- B: Adds a new animal
- C: Removes animals
- D: Checks if an animal is warm-blooded
View Answer
A
Q769: In the rule mammal, what condition excludes an animal from being a mammal?
- A: (animal ?name)
- B: (warm-blooded ?name)
- C: (not (lays-eggs ?name))
- D: (lays-eggs ?name)
View Answer
D
Q770: What happens when the mammal rule conditions are met?
- A: (printout t ?name " is a mammal")
- B: (assert (mammal ?name))
- C: (Both A and B)
- D: Nothing
View Answer
C