What is the output of the following statement?
* (defun make (title author) (list (list ‘title title) (list ‘author author)))
* (setf book (make ‘(Common Lisp) ‘(Guy steele)))
a) Common Lisp
b) Guy steele
c) Make
d) ((TITLE (COMMON LISP)) (AUTHOR (GUY STEELE)))
Which notation facilitates uniformity in lisp? a) Prefix b) Postfix c) Infix d) None of the mentioned
What are the variables that are bound and that have values assigned to them? a) Data b) Variable c) Parameters d) None of the mentioned
Which keyword embeds the initial element in an array in LISP? a) Initial b) Initial-content c) Initial-element d) None of the mentioned
What is the output of the given statement in LISP? * (setf fact1 ‘(big computers are nice)) * (setf (first fact1) ‘fast) a) Big computers b) Fast c) Big computers are fast d) None of the mentioned
Which do not evaluate their arguments in LISP? a) List b) Procedure c) Setf d) Macros
Which is used to build the lisp procedures? a) Data b) Primitives c) Definition 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
Explain what is the property list in LISP?
What is the other name of boxes in LISP? a) Cons cells b) Conses c) Both a & b d) None of the mentioned
What is the value of last consequent form in the triggered clause? a) Value of the entire COND b) Trigger c) Consequent d) All of the mentioned
Explain what is Local Variables?
Which makes it possible to define generic functions? a) Lisp b) CLOS c) Class d) Object-Oriented programming