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



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

Answer / chaitanya

a

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI Languages Interview Questions

Which makes it possible to define generic functions? a) Lisp b) CLOS c) Class d) Object-Oriented programming

1 Answers  


Explain List of programming languages for artificial intelligence?

0 Answers  


 Explain what is setq is used for in LISP?

1 Answers  


How many types of variables are available in lisp? a) 1 b) 2 c) 3 d) 4

1 Answers  


 What is the output of the following statement? * (defun both-ends-with-special ()(setf whole-list (cons (first whole-list) (last whole-list)))) * (setf whole-list ‘(monday tuesday wednesday thursday friday)) * (both-ends-with-special) a) Monday b) Friday c) Wednesday d) Both a & b

1 Answers  






 Is it possible to call LISP functions from other languages?

1 Answers  


What is the output of the following statement? * (defun book-author (book) (second book)) * (setf book-example-1 ‘((Artificial Intelligence) (Patrick) (Technical AI))) * (book-author book-example-1) a) Artificial Intelligence b) Patrick c) Technical AI d) None of the mentioned

1 Answers  


What is the output of the following statement? * (setf whole-list ‘(monday tuesday wednesday thursday friday)) * (defun both-ends ()(setf whole-list (cons (first whole-list) (last whole-list)))) a) Monday b) BOTH-ENDS c) Friday Monday d) Monday Friday

1 Answers  


 Explain why matching variable is important in Prolog? What is the method to match variables?

1 Answers  


Tell Me In Autocad Software How Can U Find All Command List And How Can You Change Them Like L For Line After Changing You Can Use LLP As a Line Command

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 used to seperate the abstraction layers? a) Abstraction boundaries b) Data c) Procedure d) All of the mentioned

1 Answers  


Categories