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
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
Mention what is Cut (!) in Prolog and what is the advantage of ‘Cut’ and ‘Negation’?
What is a symbol thought of as a name for a place to store value? a) Data b) Variable c) Parameters d) None of the mentioned
Explain what is backtracking in Prolog?
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
What is the output of the given statement? * (defclass article() ((title :accessor article-title :initarg :title) (author :accessor article-author :initarg :author))) * (defclass computer-article (article) ()) * (defclass business-article (article) ()) * (defclass political-article (article) ()) * (setf articles (list (make-instance ‘business-article :title “Memory Prices down”))) a) Business article b) Political article c) Business article
Which is used to build the lisp procedures?
Which class can help to select a method? a) Nonoptional argument b) Class c) Method d) None of the method
Which is present in the writer procedure for arrays in LISP? a) Setf b) Aref c) Fref d) Both a & b
Which is used to construct new lists by linking the right pointers? a) Links b) List c) Variables d) Right pointers
What is the output of the following statement? * (+ 3.14 2.71) a) 3.14 b) 2.71 c) 5.84 d) 5.85
Why LISP is used for Artificial Intelligence?