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)))



What is the output of the following statement? * (defun make (title author) (list (list ‘titl..

Answer / chaitanya

d

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More AI Languages Interview Questions

 Which notation facilitates uniformity in lisp? a) Prefix b) Postfix c) Infix d) None of the mentioned

1 Answers  


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

1 Answers  


 Which keyword embeds the initial element in an array in LISP? a) Initial b) Initial-content c) Initial-element d) None of the mentioned

1 Answers  


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

1 Answers  


Which do not evaluate their arguments in LISP? a) List b) Procedure c) Setf d) Macros

1 Answers  






Which is used to build the lisp procedures? a) Data b) Primitives c) Definition d) None of the mentioned

1 Answers  


 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

1 Answers  


 Explain what is the property list in LISP?

1 Answers  


 What is the other name of boxes in LISP? a) Cons cells b) Conses c) Both a & b d) None of the mentioned

1 Answers  


 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

1 Answers  


Explain what is Local Variables?

1 Answers  


Which makes it possible to define generic functions? a) Lisp b) CLOS c) Class d) Object-Oriented programming

1 Answers  


Categories