MCQ Bank
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}}
CLIPS is mainly used to develop:
- A) Operating Systems
- B) Expert Systems
- C) Web Sites
- D) Mobile Apps
What is the role of "crlf" in the printout command in CLIPS?
- A) Repeats the previous line
- B) Stops rule execution
- C) Prints a space between words
- D) Moves the cursor to a new line
What does CLIPS stand for?
- A) C Language Inference Production System
- B) C Language Inference Programming System
- C) C Language Integrated Programming System
- D) C Language Integrated Production System
Which of the following is a valid CLIPS command?
- A) facts()
- B) [facts]
- C) {facts}
- D) (facts)
In which year was CLIPS developed?
- A) 1985
- B) 1980
- C) 1990
- D) 1975
Which programming language was CLIPS written in?
- A) Python
- B) Lisp
- C) Java
- D) C
In CLIPS, what does "t" represent in a printout command?
- A) The output logical name for the standard output
- B) Tab space
- C) Terminate the print statement
- D) The variable to print
Where was CLIPS developed?
- A) MIT Artificial Intelligence Lab
- B) Stanford Research Institute
- C) NASA Johnson Space Centre
- D) IBM Research Labs
In CLIPS, knowledge is mainly represented using Facts and _____________ .
- A) Algorithms
- B) Rules
- C) Functions
- D) Loops
Which of the following is a correct way to exit CLIPS?
- A) (end)
- B) (exit)
- C) (quit)
- D) (close)
Which CLIPS command stops the current execution without exiting CLIPS?
- A) reset
- B) halt
- C) defclass
- D) assert
Which of the following represents a Boolean value in CLIPS?
- A) (temperature 30)
- B) TRUE
- C) 3.14
- D) (1 2 3)
Which of the following is a logical operation function in CLIPS?
- A) first
- B) eq
- C) and
- D) add
In CLIPS, function parameters are defined inside ________________.
- A) Angle Brackets < >
- B) Square Brackets []
- C) Parentheses ()
- D) Curly Braces { }
Which of the following represents a valid Integer in CLIPS?
- A) (person john)
- B) -10
- C) "temperature"
- D) 3.14
Which CLIPS function is used to combine two or more strings?
- A) str-link
- B) str-com
- C) str-join
- D) str-cat
What does the exit command do in CLIPS?
- A) Initializes the system with facts.
- B) Shuts down the CLIPS environment.
- C) Adds a new fact to the working memory.
- D) Defines a template for structured facts.
The correct way to call the following function in CLIPS is ______________. (deffunction add (?num1 ?num2) (return (+ ?num1 ?num2)) )
- A) (call add 5 10)
- B) (execute add(5, 10))
- C) (add 5 10)
- D) (invoke add 5 10)
If you want to convert a list into a string in CLIPS, which function would you use?
- A) implode$
- B) exclude$
- C) explode$
- D) include$