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
What is the output of the given statement? * (evenp (* 10 8 6 4 2)) a) T b) F c) NIL d) All of the mentioned
Explain what is recursion in Prolog?
In “cuts” what is the Parent goal in Prolog?
Which primitive removes all but the last element from the list? a) Last b) First c) Remove d) Revoke
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
Which keyword is used to define macro procedures in LISP? a) Defun b) Demacro c) Defmacro d) None of the mentioned
Which creates reader procedures for getting things out of an instance fields? a) Structure in LISP b) Defstruct c) Class d) Object
Mention what is the difference between = and = = in Prolog?
Mention what are the three functions required by LISP?
What is the output of the given statement in LISP? * (setf bins (make-array 2 :initial-element ‘e)) a) E b) E E c) E E E d) E E E E
Which hides details behind abstraction boundaries? a) Procedures b) Procedure abstraction c) Recursion d) Both a & b
. What is the output of the given statement? * (defstruct employee (length-of-service 0) (payment ‘salary)) * (setf employee-example (make-employee)) * (employee-length-of-service employee-example) a) T b) NIL c) 0 d) Error