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



 What is the output of the given statement in LISP? * (Setf part-bins (make-array ‘(4)))..

Answer / chaitanya

d

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI Languages Interview Questions

 What is the output of the following statement? * ( first (rest (first ‘((a b) (c d))))) a) a b) b c) c d) d

1 Answers  


What will happen if the value of all the test-forms are nil? a) Nothing b) COND form is nil c) Both a & b 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  


 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 does the language of fopl consist of?

0 Answers  






 Which class can help to select a method? a) Nonoptional argument b) Class c) Method d) None of the method

1 Answers  


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

1 Answers  


 What is the output of the given statement  in LISP? * (setf part (make-array ‘(8 8))) a) 8 b) 0 0 0 0 0 0 0 0 c) 0 0 0 0 d) 8 rows of 0

1 Answers  


 What is partly embedded in the knowledge of your programming for manipulating applications? a) Programming cliches b) Procedures c) Abstraction d) Data

1 Answers  


 In “cuts” what is the Parent goal in Prolog?

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  


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

1 Answers  


Categories