What is the output of the given statement in LISP?
* (setf bins (make-array 4 :initial-element ‘e))
* (aref bins 0)
a) E
b) 0
c) 4
d) None of the mentioned
What is the output of the given statement in LISP? * (setf abc ‘(a b c) xyz ‘(x y z)) * abc a) A b) B c) ABC
Explain what is LISP? Give an example of some of the popular applications built in LISP?
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)))
Mention what is Cut (!) in Prolog and what is the advantage of ‘Cut’ and ‘Negation’?
What is the process of arranging procedures into layers? a) Procedure b) Abstraction c) Abstraction layers d) Procedure abstraction
What is the output of the following statement? * (first ‘( p h w)) a) P b) H c) W d) phw
What is the output of the given statement? * (setf pressure -3) * (when-plusp pressure (print ‘alarm)); a) T b) Nil c) Alarm d) None of the mentioned
In “cuts” what is the Parent goal in Prolog?
How the clause is called if it contains a test, as well as zero or more additional forms in LISP? a) Conditional b) Consequents c) Clause d) None of the mentioned
Explain where you use + operator in Prolog?
Which makes it possible to define generic functions? a) Lisp b) CLOS c) Class d) Object-Oriented programming
Explain what is Local Variables?