MCQ Bank
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
Which CLIPS function is used to combine two or more strings?
- A) str-link
- B) str-join
- C) str-cat
- D) str-com
What is the role of "crlf" in the printout command in CLIPS?
- A) Moves the cursor to a new line
- B) Prints a space between words
- C) Stops rule execution
- D) Repeats the previous line
Which programming language was CLIPS written in?
- A) C
- B) Lisp
- C) Python
- D) Java
Which of the following represents a valid Integer in CLIPS?
- A) "temperature"
- B) 3.14
- C) -10
- D) (person john)
In CLIPS, which data type is used for a sequence of characters enclosed in double quotes?
- A) String
- B) Boolean
- C) Symbol
- D) List