Which is the primitive that creates new structure types in LISP?
a) Defnum
b) Deftype
c) Defstruct
d) None of the mentioned



 Which is the primitive that creates new structure types in LISP? a) Defnum b) Deftype c) De..

Answer / chaitanya

c

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More AI Languages Interview Questions

Demonstrate with an example how you can code in LISP?

1 Answers  


Name the sector where prolog programming language is used?

1 Answers  


 What is the value of last consequent form in the triggered clause? a) Value of the entire COND b) Trigger c) Consequent d) All of the mentioned

1 Answers  


 Explain what is the property list in LISP?

1 Answers  


Which enables storage in procedurally indexed places in LISP? a) Defstruct b) Object c) Structure d) None of the mentioned

1 Answers  






Explain what is a predicate in LISP?

1 Answers  


 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

1 Answers  


 What is the output of the following statement? * (setf meals ‘(breakfast lunch tea dinner)) * (first meals) a) Breakfast b) Lunch c) Tea d) Dinner

1 Answers  


Mention what is Cut (!) in Prolog and what is the advantage of ‘Cut’ and ‘Negation’?

1 Answers  


What is a data type in which expressions are stored in places identified by integer indexes in LISP? a) Structure b) List c) Array d) None of the mentioned

1 Answers  


 What is the output of the following statement? * (defun make (title author) (list (list ‘title title) (list ‘author author))) * (setf book (make ‘(Common Lisp) ‘(Guy steele))) * (defun book-author-writer (book author) (cons (list ‘author author) book)) a) Book b) Book-author c) Book-author-writer d) None of the mentioned

1 Answers  


 Explain what is prolog programming language? What is it based on?

1 Answers  


Categories