What is the output of the given statement? [code]* (defclass constraint () ((name :accessor constraint-name :initarg :name) (output

Tiên Hương

New member
What is the output of the given statement?
Code:
* (defclass constraint () ((name :accessor constraint-name :initarg :name) 
  (output :accessor constraint-output)))
* (defclass binary-constraint (constraint) ((input :accessor constraint-input)))
* (defclass ternary-constraint (constraint) ((input-a :accessor constraint-input-a) 
  (input-b :accessor constraint-input-b)))
* (defclass not-box (binary-constraint) ())
* (defclass or-box (ternary-constraint) ())
* (defclass and-box (ternary-constraint) ())
A. And-box
B. Or-box
C. Not-box
D. None of the mentioned
 
Answer: a
Explanation: This statement will create a list of classes for constraint manipulation.
Output:
#<STANDARD-CLASS BINARY-CONSTRAINT>
#<STANDARD-CLASS TERNARY-CONSTRAINT> #<STANDARD-CLASS NOT-BOX>
#<STANDARD-CLASS OR-BOX> #<STANDARD-CLASS AND-BOX>
 

Tìm kiếm

Back
Top