What is the output of the given statement in LISP?
* (Setf part-bins (make-array ‘(4)))
* (setf (aref part-bins 0) ‘nails);
* (setf (aref part-bins 1) ‘nuts);
* (setf (aref part-bins 2) ‘bolts)
* (setf (aref part-bins 3) ‘bike)
* (aref part-bins 2)
* (setf (aref part-bins 4) ‘car)
a) Nails
b) Nuts
c) 2
d) Error
Which is a string of boxes linked by arrow like pointers in LISP? a) Lisp b) List c) Variables d) Pointers
Mention what is Cut (!) in Prolog and what is the advantage of ‘Cut’ and ‘Negation’?
Which is uses their arguments to build intermediate forms and evaluating them to produce a value? a) Backquote b) Macros c) List d) 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
Which process helps to build large and complicated programs in LISP? a) Macros b) Procedure abstraction c) Defun d) None
Explain what is the importance of the hash table in LISP?
Name the sector where prolog programming language is used?
Why in prolog it is said that Program and Data are the same thing?
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
Which process helps to build a large and complicated programs in LISP? a) Abstraction b) Mapping c) Data abstraction d) None of the mentioned
Which class can help to select a method? a) Nonoptional argument b) Class c) Method d) None of the method
Which keyword is used to construct an array in LISP? a) Array b) Make-array c) Bins d) Make
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)