Explain what is CLOS in LISP? What are the goals of the common lisp object system?
Answer / chaitanya
For writing object oriented programs, common LISP includes a set of operators, collectively they are called CLOS or Common Lisp Object System.
The common objective of LISP is to
• To fit common lisp in a natural way, in terms of functional notation and extending common LISP type
• To provide a smooth growth path and easy transitions for current users of flavors and common loops
• To provide a layered approach
• To provide both platforms for the efficient delivery of applications and language for powerful programing environment
Is This Answer Correct ? | 0 Yes | 0 No |
What is the output of the following statement? * (first ‘( p h w)) a) P b) H c) W d) phw
Which keyword is used to define macro procedures in LISP? a) Defun b) Demacro c) Defmacro d) None of the mentioned
What is the output of the given statement in LISP? * (setf l1 (list ‘a ‘b ‘c)) * (setf l2 (list ‘a ‘b)) * (setf l1 l2) a) A B b) A B C c) B C d) None of the mentioned
Which abstractions have a prescribed behavior? a) Auxiliary procedures b) Procedure abstraction c) Primary procedures d) None of the mentioned
Explain what is SWI-Prolog?
What is the difference between the appearance of macro and ordinary definition in LISP? a) Argument list b) Reture value c) Just the defining keyword d) None of the mentioned
Explain what is Local Variables?
What is the process of reserving a place in computer memory to store a value for a symbol? a) Storing b) Ranging c) Binding d) None of the mentioned
Mention what is the difference between = and = = in Prolog?
Which checks the evaluated key form against the unevaluated keys using EQL? a) COND b) CASE c) NIL d) SETF
Why LISP is used for Artificial Intelligence?
What is the output of the given statement in LISP? * (setf bins (make-array 4 :initial-element ‘e)) * (aref bins 0) a) E b) 0 c) 4 d) None of the mentioned