What is the output of the following statement?
* (cdr ‘(a b c))
a) a
b) B
c) (B C)
D) None of the mentioned



 What is the output of the following statement? * (cdr ‘(a b c)) a) a b) B c) (B C) ..

Answer / chaitanya

c

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More AI Languages Interview Questions

 Is it possible to call LISP functions from other languages?

1 Answers  


 What is the output of the given statement? * (defstruct circle (radius 0)) * (defun area (figure) (cond ((circle-p figure) (* pi (expt (circle-radius figure) 2))))) * (setf circle (make-circle :radius 11)) * (area circle) a) 44 b) 380 c) 382 d) 380.132

1 Answers  


 What is the output of the following statement? * (setf book (book=author-writer book ‘(guy steele))) a) Guy b) Steele c) Error d) None of the mentioned

1 Answers  


 Which process helps to build a large and complicated programs in LISP? a) Abstraction b) Mapping c) Data abstraction d) None of the mentioned

1 Answers  


 What is the output of the following statement? * (setf x ‘outside) * (let ((x ‘inside) (y x)) (list x y)) a) Outside b) Inside c) Inside Outside d) Outside Inside

1 Answers  






What will happen if the value of all the test-forms are nil? a) Nothing b) COND form is nil c) Both a & b d) None of the mentioned

1 Answers  


 What is the output of the following statement? * (first ‘( p h w)) a) P b) H c) W d) phw

1 Answers  


Explain what is CLOS in LISP? What are the goals of the common lisp object system?

1 Answers  


Demonstrate with an example how you can code in LISP?

1 Answers  


 Explain what is the property list in LISP?

1 Answers  


Why LISP is used for Artificial Intelligence?

1 Answers  


 Which is the primitive that creates new structure types in LISP? a) Defnum b) Deftype c) Defstruct d) None of the mentioned

1 Answers  


Categories