Artificial Intelligence MCQs with Answers
Practice important Artificial Intelligence MCQs with answers and explanations.
Chapter: 22
Q741:
Ali is Ahmed’s brother is an example of which type of data?
A. Symbol
B. Numeric
C. String
D. Slot
Correct Answer:
C
Chapter: 22
Q742:
Which command duplicates fact 2 in CLIPS?
A. (copy 2)
B. (duplicate 2)
C. (clone 2)
D. (new 2)
Correct Answer:
B
Chapter: 22
Q743:
To modify a fact in CLIPS, which command is used?
A. (change)
B. (update)
C. (modify)
D. (replace)
Correct Answer:
C
Chapter: 22
Q744:
The Deftemplate structure starts with which keyword?
A. template
B. start
C. deftemplate
D. define
Correct Answer:
C
Chapter: 22
Q745:
To turn off watching rules, you would use:
A. (unwatch rules)
B. (stopwatch rules)
C. (remove rules)
D. (deactivate rules)
Correct Answer:
A
Chapter: 22
Q746:
In CLIPS, the statement (+ 3 5) evaluates to:
A. 35
B. 8
C. (3 + 5)
D. Error
Correct Answer:
B
Chapter: 22
Q747:
To define facts that load with reset, use:
A. (defrule)
B. (deftemplate)
C. (deffacts)
D. (assert)
Correct Answer:
C
Chapter: 22
Q748:
To check agenda contents, use:
A. show agenda
B. get agenda
C. (agenda)
D. check rules
Correct Answer:
C
Chapter: 22
Q749:
CLIPS was developed in _______.
A. C++
B. C
C. Python
D. Java
Correct Answer:
B
Chapter: 22
Q750:
CLIPS> is the default ______.
A. command
B. rule
C. prompt
D. editor
Correct Answer:
C
Chapter: 22
Q751:
The run command in CLIPS triggers
A. templates
B. rule definitions
C. agenda execution
D. slot evaluation
Correct Answer:
C
Chapter: 22
Q752:
The command (watch facts) enables
A. debugging
B. activation logging
C. viewing facts
D. agenda reset
Correct Answer:
B
Chapter: 22
Q753:
Facts in CLIPS are stored in
A. a rule base
B. a fact list
C. a function database
D. an agenda
Correct Answer:
B
Chapter: 22
Q754:
CLIPS uses _______ as delimiters for commands.
A. {}
B. []
C. ()
D. <>
Correct Answer:
C
Chapter: 23
Q755:
What does the (printout t "Ali is Ahmed’s son" crlf) command do in CLIPS?
A. Prints a message
B. Asserts a fact
C. Removes a breakpoint
D. Loads a file
Correct Answer:
A
Chapter: 23
Q756:
Which command in CLIPS is used to set a breakpoint at a specified rule?
A. (set-break isSon)
B. (remove-break isSon)
C. (show-breaks)
D. (load "filename.clp")
Correct Answer:
A
Chapter: 23
Q757:
What command is used to resume execution after hitting a breakpoint in CLIPS?
A. run
B. set-break
C. remove-break
D. show-breaks
Correct Answer:
A
Chapter: 23
Q758:
How do you remove a breakpoint in CLIPS?
A. (remove-break isSon)
B. (set-break isSon)
C. (show-breaks)
D. (run
Correct Answer:
A
Chapter: 23
Q759:
Which command shows all the breakpoints currently set in CLIPS?
A. (show-breaks)
B. (set-break)
C. (remove-break)
D. (run)
Correct Answer:
A
Chapter: 23
Q760:
In CLIPS, which file extension is used for saving and loading constructs like deftemplate, deffacts, and defrules?
A. .clp
B. .txt
C. .doc
D. .exe
Correct Answer:
A