What is the output of the given statement?
* (defclass article() ((title :accessor article-title :initarg :title) (author :accessor article-author :initarg :author)))
a) Article
b) c)
d) None of the mentioned
How many access procedures are avilable in lisp? a) 1 b) 2 c) 3 d) 4
Which enables storage in procedurally indexed places in LISP? a) Defstruct b) Object c) Structure d) None of the mentioned
Mention how many types of variables available is LISP? Explain what are the variables that are bound, and that have values assigned to them?
What is the output of the given statement? * (setf pressure 3) * (when-plusp pressure (print ‘alarm)); a) Alarm b) Alarm Alarm c) 1 d) Nil
What is meant by collection of methods the same name? a) Lisp class b) Class c) Generic function d) None of the mentioned
Explain where you use + operator 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? * (defstruct triangle (base 0) (altitude 0)) * (defun area (figure) (cond ((triangle-p figure) (* 1/2 (triangle-base figure) (triangle-altitude figure))))) * (setf triangle (make-triangle :base 2 :altitude 3)) * (area triangle) a) Triangle b) 7 c) 6 d) 10
Explain LISP-Vectors?
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? * (cdr ‘(a b c)) a) a b) B c) (B C) D) None of the mentioned
What are the variables that are bound and that have values assigned to them? a) Data b) Variable c) Parameters d) None of the mentioned