What is the output of the given statement in LISP?
* (setf bins (make-array 2 :initial-element ‘e))
a) E
b) E E
c) E E E
d) E E E E



 What is the output of the given statement in LISP? * (setf bins (make-array 2 :initial-elemen..

Answer / chaitanya

b

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI Languages Interview Questions

 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

1 Answers  


 Which can build new lists by depositing pointers in free boxes? a) Do b) Dobuild c) Cons d) None of the mentioned

1 Answers  


Explain what is List structures in Prolog?

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  


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

1 Answers  






 What is the output of the given statement in LISP? * (setf bins (make-array 2 :initial-element ‘e)) a) E b) E E c) E E E d) E E E E

1 Answers  


 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

1 Answers  


Which is a string of boxes linked by arrow like pointers in LISP? a) Lisp b) List c) Variables d) Pointers

1 Answers  


 Mention who is referred as a Member in Prolog?

1 Answers  


 Which primitive removes all but the last element from the list? a) Last b) First c) Remove d) Revoke

1 Answers  


Explain what is LISP constants?

1 Answers  


 What is the output of the following statement? * (+ 3.14 2.71) a) 3.14 b) 2.71 c) 5.84 d) 5.85

1 Answers  


Categories