MCQ Bank
The left-hand side (LHS) of a CLIPS rule contains:
- A) Actions to be executed
- B) Conditions or patterns
- C) Rule name
- D) Facts to be deleted
Which part of an expert system applies reasoning to solve problems?
- A) Explanation facility
- B) Working Memory
- C) Inference engine
- D) Knowledge base
In CLIPS, which of the following correctly defines a single-valued attribute in a Fact template?
- A) field
- B) element
- C) slot
- D) attribute
What does the knowledge base of an expert system contain?
- A) Output results
- B) Programming code
- C) Rules and facts about the domain
- D) User inputs
What does the str-index function in CLIPS do?
- A) Converts a string into a list
- B) Finds the position of a substring within a string
- C) Concatenates two or more strings
- D) Returns the length of a string
CLIPS is mainly used to develop:
- A) Mobile Apps
- B) Web Sites
- C) Operating Systems
- D) Expert Systems
What does the mod function in CLIPS return?
- A) The absolute value of a number
- B) The remainder when dividing two numbers
- C) The square root of a number
- D) The result of division
Which CLIPS command stops the current execution without exiting CLIPS?
- A) assert
- B) reset
- C) halt
- D) defclass
In CLIPS, what does "t" represent in a printout command?
- A) The variable to print
- B) Tab space
- C) The output logical name for the standard output
- D) Terminate the print statement
In CLIPS, knowledge is mainly represented using Facts and _____________ .
- A) Functions
- B) Algorithms
- C) Loops
- D) Rules
Which programming language was CLIPS written in?
- A) C
- B) Java
- C) Python
- D) Lisp
What does CLIPS stand for?
- A) C Language Integrated Programming System
- B) C Language Inference Programming System
- C) C Language Inference Production System
- D) C Language Integrated Production System
Where was CLIPS developed?
- A) IBM Research Labs
- B) MIT Artificial Intelligence Lab
- C) NASA Johnson Space Centre
- D) Stanford Research Institute
Which of the following is a correct way to exit CLIPS?
- A) (end)
- B) (exit)
- C) (quit)
- D) (close)
Which of the following is a valid CLIPS command?
- A) [facts]
- B) facts()
- C) (facts)
- D) {facts}
What is the role of "crlf" in the printout command in CLIPS?
- A) Stops rule execution
- B) Repeats the previous line
- C) Prints a space between words
- D) Moves the cursor to a new line
In which year was CLIPS developed?
- A) 1980
- B) 1975
- C) 1985
- D) 1990
What is the general structure of a CLIPS command?
- A) [command-name [arguments]]
- B) {command-name {arguments}}
- C) (command-name (arguments))
- D) <command-name <arguments>>
What does the run command do in CLIPS?
- A) Initializes the system with facts.
- B) Starts executing a CLIPS program.
- C) Adds a new fact to the system's working memory.
- D) Exits the CLIPS environment.
Which of the following represents a Boolean value in CLIPS?
- A) 3.14
- B) TRUE
- C) (1 2 3)
- D) (temperature 30)