Explain what is CLOS in LISP? What are the goals of the common lisp object system?
Answer / chaitanya
For writing object oriented programs, common LISP includes a set of operators, collectively they are called CLOS or Common Lisp Object System.
The common objective of LISP is to
• To fit common lisp in a natural way, in terms of functional notation and extending common LISP type
• To provide a smooth growth path and easy transitions for current users of flavors and common loops
• To provide a layered approach
• To provide both platforms for the efficient delivery of applications and language for powerful programing environment
| Is This Answer Correct ? | 0 Yes | 0 No |
Which keyword is used to define macro procedures in LISP? a) Defun b) Demacro c) Defmacro d) None of the mentioned
Mention what are the three functions required by LISP?
Which is used to build the lisp procedures?
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? * (setf day-or-date ‘monday) * (if (symbolp day-or-date) ‘day ‘date) a) Monday b) Day c) Date d) None of the mentioned
What is the output of the following statement? * (setf meals ‘(breakfast lunch tea dinner)) * (first meals) a) Breakfast b) Lunch c) Tea d) Dinner
What is the output of the given statement? * (setf toss ‘(heads tails tails tails heads tails)) * (delete ‘heads toss) * toss a) Heads tails b) Heads tails tails tails tails c) Heads d) None of the mentioned
What is the other name of boxes in LISP? a) Cons cells b) Conses c) Both a & b d) None of the mentioned
Explain why PROLOG language is stated as a procedural language?
What is the output of the following statement? * (first ‘( p h w)) a) P b) H c) W d) phw
Which is used to construct new lists by linking the right pointers? a) Links b) List c) Variables d) Right pointers
Explain where you use + operator in Prolog?
AI Algorithms (74)
AI Natural Language Processing (96)
AI Knowledge Representation Reasoning (12)
AI Robotics (183)
AI Computer Vision (13)
AI Neural Networks (66)
AI Fuzzy Logic (31)
AI Games (8)
AI Languages (141)
AI Tools (11)
AI Machine Learning (659)
Data Science (671)
Data Mining (120)
AI Deep Learning (111)
Generative AI (153)
AI Frameworks Libraries (197)
AI Ethics Safety (100)
AI Applications (427)
AI General (197)
AI AllOther (6)