What is the output of the following statement in LISP?
* (setf thing ‘point r 1)
* (case thing (circle (*pi r r))(sphere (* 4 pi r r)) (otherwise 0))
a) 1
b) 0
c) 12.566
d) None of the mentioned



 What is the output of the following statement in LISP? * (setf thing ‘point r 1) * (ca..

Answer / chaitanya

b

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI Languages Interview Questions

What is the output of the given statement? * (defstruct person (sex nil) (personality ‘nice)) * (setf person-instance-1 (make-person)) * (setf person-instance-2 (make-person :sex ‘female)) a) Person :sex female :personality nice b) Person :sex c) Sex:Female d) None of the mentioned

1 Answers  


Which checks the evaluated key form against the unevaluated keys using EQL? a) COND b) CASE c) NIL d) SETF

1 Answers  


Explain List of artificial intelligence projects?

0 Answers  


Which is used to construct new lists by linking the right pointers? a) Links b) List c) Variables d) Right pointers

1 Answers  


 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

1 Answers  






Pick out the correct statement about macro. a) Macro is dependant. b) Macro is interoperable c) Macro is complex d) Macro deserve their own file

1 Answers  


Explain what is Local Variables?

1 Answers  


 How data types are categorized in LISP?

1 Answers  


 Explain LISP-Vectors?

1 Answers  


What is the output of the following statement? * (defun book-author (book) (second book)) * (setf book-example-1 ‘((Artificial Intelligence) (Patrick) (Technical AI))) * (book-author book-example-1) a) Artificial Intelligence b) Patrick c) Technical AI d) None of the mentioned

1 Answers  


 Explain what is setq is used for in LISP?

1 Answers  


What are the different nlp tasks deep learning can be applied?

0 Answers  


Categories