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 process of creating new data types in lisp? a) List b) Structures c) Procedures d) None of the mentioned
Which has a template that calls for particularly peculiar argument evaluation? a) COND b) Consequent c) Trigger d) Sphere
Explain with an example what is “Setof” predicate in Prolog?
Explain what is backtracking in Prolog?
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
Mention what is the difference between Prolog and normal programming language?
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 what is slot and what are the most commonly used slot options?
Which checks the evaluated key form against the unevaluated keys using EQL? a) COND b) CASE c) NIL d) SETF
What is the output of the following statement? * (defun both-ends-with-special ()(setf whole-list (cons (first whole-list) (last whole-list)))) * (setf whole-list ‘(monday tuesday wednesday thursday friday)) * (both-ends-with-special) a) Monday b) Friday c) Wednesday d) Both a & b
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
Demonstrate with an example how you can code in LISP?