What is meant by collection of methods the same name?
a) Lisp class
b) Class
c) Generic function
d) None of the mentioned
What is the output of the given statement in LISP? * (Setf part-bins (make-array ‘(4))) * (setf (aref part-bins 0) ‘nails); * (setf (aref part-bins 1) ‘nuts); * (setf (aref part-bins 2) ‘bolts) * (setf (aref part-bins 3) ‘bike) * (aref part-bins 2) * (setf (aref part-bins 4) ‘car) a) Nails b) Nuts c) 2 d) Error
What is the output of the following statement? * (setf p .6) * (cond ((> p .75) ‘very-likely)((> p .5) ‘likely)((> p .25) ‘unlikely)(t ‘very-unlikely)) a) Very-likely b) Likely c) Unlikely d) Very-unlikely
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 following statement? * (first ‘( p h w)) a) P b) H c) W d) phw
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
Which keyword is used to define the method? a) Defun b) Destruct c) Demake d) Defmethod
What is the output of the given statement? * (defmethod area ((figure rectangle)) (* (rectangle-width figure) (rectangle-height figure))) a) Area b) Rectangle c) Height d) Error
Which class can help to select a method? a) Nonoptional argument b) Class c) Method d) None of the method
Mention what is the difference between = and = = in Prolog?
Which primitive removes all but the last element from the list? a) Last b) First c) Remove d) Revoke
Which keyword is used to construct an array in LISP? a) Array b) Make-array c) Bins d) Make
Which is used to construct new lists by linking the right pointers? a) Links b) List c) Variables d) Right pointers