MCQ Bank
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
Which of the following is a valid List in CLIPS?
- A) 42
- B) (3 14 15)
- C) TRUE
- D) "apple"
What does the exit command do in CLIPS?
- A) Defines a template for structured facts.
- B) Shuts down the CLIPS environment.
- C) Initializes the system with facts.
- D) Adds a new fact to the working memory.
Which of the following is NOT a valid data type in CLIPS?
- A) Tuple
- B) Void
- C) Integer
- D) String
What is the purpose of the reset command in CLIPS?
- A) Initializes the system with facts.
- B) Stops the current execution without exiting CLIPS.
- C) Shuts down the CLIPS environment.
- D) Defines a function in CLIPS.
What data type does the value 3.14 represent in CLIPS?
- A) List
- B) String
- C) Float
- D) Integer
The correct way to call the following function in CLIPS is ______________. (deffunction add (?num1 ?num2) (return (+ ?num1 ?num2)) )
- A) (add 5 10)
- B) (call add 5 10)
- C) (invoke add 5 10)
- D) (execute add(5, 10))
What does the following CLIPS statement do? (assert (preference (cuisine biryani)))
- A) Prints the user’s favorite food (i.e., biryani)
- B) Deletes the preference fact from memory
- C) Defines a new rule for biryani
- D) Adds a fact about the cuisine preference to working memory
In the following CLIPS statement, what is cuisine? (user-preference (cuisine biryani))
- A) A template
- B) A value
- C) A slot
- D) A fact
Producer-Consumer problem is considered as the process __________ problem.
- A) synchronization
- B) blocking
- C) limitation
- D) receiving
In dining philosopher problem all the five philosophers sitting around the round circular table have _______ chopsticks.
- A) 4
- B) 5
- C) 10
- D) 3
In case producer process wants to produce some item and buffer is already full to its capacity then there will be buffer________message.
- A) full
- B) busy
- C) empty
- D) pull
In ____________a process must enter the maximum number of instances that he may need in the future.
- A) Lotus algorithm
- B) Banker algorithm
- C) College algorithm
- D) University algorithm
In dining philosopher problem all the five philosophers can do two things ______________.
- A) thinking and eating
- B) sleeping and eating
- C) laughing and eating
- D) playing and eating
We have to implement the Producer-Consumer problem by using ______.
- A) Read-Only Memory (ROM)
- B) Programmable Read-Only Memory (PROM)
- C) Shared Memory
- D) Unshared Memory
In Banker algorithm Need data structure is used. If_______, then process Pi may need k more instances of resource type Rj to complete the task.
- A) Need[i,j] = k
- B) Need[k,j] = k
- C) Need[ j,i ] = k
- D) Need[i,k] = j