Artificial Intelligence MCQs with Answers
Practice important Artificial Intelligence MCQs with answers and explanations.
Chapter: 22
Q721:
The WATCH command in CLIPS is used for
A. monitoring variables
B. viewing facts
C. debugging programs
D. running rules
Correct Answer:
C
Chapter: 22
Q722:
Which command turns off fact monitoring in CLIPS?
A. stopwatch
B. unwatch facts
C. disablewatch
D. clearwatch
Correct Answer:
B
Chapter: 22
Q723:
What is the purpose of DEFFACTS?
A. Define rules
B. Automatically assert facts
C. Define templates
D. Reset environment
Correct Answer:
B
Chapter: 22
Q724:
What command sets the working memory to initial state in CLIPS?
A. initialize
B. reset
C. clear
D. start
Correct Answer:
B
Chapter: 22
Q725:
The DEFRULE construct is used to
A. define facts
B. define agenda
C. define rules
D. define slots
Correct Answer:
C
Chapter: 22
Q726:
What happens if all patterns in a rule match the facts?
A. The rule is discarded
B. The rule is ignored
C. The rule is activated
D. The rule is deleted
Correct Answer:
C
Chapter: 22
Q727:
Where are activated rules stored before execution?
A. Rule base
B. Memory
C. Agenda
D. List
Correct Answer:
C
Chapter: 22
Q728:
Which command is used to execute the activated rules?
A. fire
B. run
C. start
D. go
Correct Answer:
B
Chapter: 22
Q729:
To see which rules are on the agenda, use the command:
A. show agenda
B. display list
C. agenda
D. rules
Correct Answer:
C
Chapter: 22
Q730:
(watch activations) in CLIPS is used to
A. Watch rule firing
B. Watch rule matches
C. Watch pattern matches
D. Watch activated rules
Correct Answer:
D
Chapter: 22
Q731:
(watch rules) command shows
A. rules being defined
B. rules being activated
C. rules being fired
D. rules being deleted
Correct Answer:
C
Chapter: 22
Q732:
CLIPS was developed to build _________.
A. neural networks
B. object-based systems
C. expert systems
D. robotics applications
Correct Answer:
C
Chapter: 22
Q733:
CLIPS supports which programming paradigm?
A. Object-oriented
B. Rule-based
C. Logic-based
D. All of the above
Correct Answer:
D
Chapter: 22
Q734:
The command (facts 2 5) will
A. show all facts
B. show facts from 1 to 10
C. show facts 2 to 5
D. show first 5 facts
Correct Answer:
C
Chapter: 22
Q735:
To define a new relation like "father", we use
A. (defrule)
B. (deffact)
C. (deftemplate)
D. (facts)
Correct Answer:
C
Chapter: 22
Q736:
To add multiple facts automatically on reset, use
A. (deffacts)
B. (defrule)
C. (assert)
D. (facts)
Correct Answer:
A
Chapter: 22
Q737:
Ahmed is Ali’s son if Ali is Ahmed’s father. This rule can be represented using
A. (deffacts)
B. (defrule)
C. (deftemplate)
D. (assert)
Correct Answer:
B
Chapter: 22
Q738:
The agenda contains
A. templates
B. all facts
C. rules being fired
D. activated rules
Correct Answer:
D
Chapter: 22
Q739:
The correct format to remove fact 1 and 3 is
A. (retract 1,3)
B. (retract 1 and 3)
C. (retract 1 3)
D. (remove 1 3)
Correct Answer:
C
Chapter: 22
Q740:
String data type in CLIPS must be enclosed in
A. Single quotes
B. Double quotes
C. No quotes
D. Brackets
Correct Answer:
B