How data types are categorized in LISP?
Answer / chaitanya
In LISP, data types are categorized as
• Scalar Types: Number types, Characters, Symbols, etc.
• Data Structure: list, vectors, bit-vectors and strings
Is This Answer Correct ? | 0 Yes | 0 No |
Explain what is LISP? Give an example of some of the popular applications built in LISP?
How data types are categorized in LISP?
Explain what is Local Variables?
Mention why you have to use “is” instead of “=” in Prolog when it comes to applying calculation logic?
Which checks the evaluated key form against the unevaluated keys using EQL? a) COND b) CASE c) NIL d) SETF
Which class can help to select a method? a) Nonoptional argument b) Class c) Method d) None of the method
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? * (defmethod area ((figure rectangle)) (* (rectangle-width figure) (rectangle-height figure))) a) Area b) Rectangle c) Height d) Error
Which is present in the writer procedure for arrays in LISP? a) Setf b) Aref c) Fref d) Both a & b
How many types of variables are available in lisp? a) 1 b) 2 c) 3 d) 4
What is the output of the following statement in LISP? * (setf thing ‘point r 1) * (case thing (circle (*pi r r))(sphere (* 4 pi r r)) (otherwise 0)) a) 1 b) 0 c) 12.566 d) None of the mentioned
Is it possible to call LISP functions from other languages?