MCQ Bank
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)
Where was CLIPS developed?
- A) IBM Research Labs
- B) MIT Artificial Intelligence Lab
- C) NASA Johnson Space Centre
- D) Stanford Research Institute
What does CLIPS stand for?
- A) C Language Integrated Production System
- B) C Language Inference Programming System
- C) C Language Integrated Programming System
- D) C Language Inference Production System
What is the purpose of the length$ function in CLIPS?
- A) To find the length of a string
- B) To convert a string to a list
- C) To get the number of elements in a list
- D) To concatenate two strings
In CLIPS, function parameters are defined inside ________________.
- A) Square Brackets []
- B) Parentheses ()
- C) Curly Braces { }
- D) Angle Brackets < >
Which of the following is NOT a valid data type in CLIPS?
- A) String
- B) Void
- C) Tuple
- D) Integer
What is the correct syntax for defining a user-defined function in CLIPS?
- A) (define function-name parameters body)
- B) (deffunction function-name (parameters) body)
- C) (define function-name (parameters) body)
- D) (deffunction function-name parameters body)
Which of the following is a logical operation function in CLIPS?
- A) and
- B) eq
- C) add
- D) first
CLIPS is mainly used to develop:
- A) Web Sites
- B) Operating Systems
- C) Mobile Apps
- D) Expert Systems
Which function in CLIPS returns the absolute value of a number?
- A) length
- B) sqrt
- C) index
- D) abs
If you want to convert a list into a string in CLIPS, which function would you use?
- A) exclude$
- B) implode$
- C) explode$
- D) include$
What data type does the value 3.14 represent in CLIPS?
- A) Integer
- B) String
- C) List
- D) Float
What is the purpose of the reset command in CLIPS?
- A) Initializes the system with facts.
- B) Shuts down the CLIPS environment.
- C) Defines a function in CLIPS.
- D) Stops the current execution without exiting CLIPS.
Which of the following functions is used to return the first element of a list in CLIPS?
- A) length$
- B) implode$
- C) first$
- D) rest$
Which of the following is a valid CLIPS command?
- A) [facts]
- B) {facts}
- C) (facts)
- D) facts()
In CLIPS, knowledge is mainly represented using Facts and _____________ .
- A) Loops
- B) Rules
- C) Functions
- D) Algorithms