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



 What is the output of the following statement? * (setf meals ‘(breakfast lunch tea dinn..

Answer / chaitanya

d

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI Languages Interview Questions

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

1 Answers  


Which is used to build the lisp procedures?

1 Answers  


 Explain what is setq is used for in LISP?

1 Answers  


 What is the output of the following statement? * (cdr ‘(a b c)) a) a b) B c) (B C) D) None of the mentioned

1 Answers  


Explain List of programming languages for artificial intelligence?

0 Answers  






 What should be used with structure names with a combination? a) Make- b) Make c) Create d) Deploy

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  


 Why in prolog it is said that Program and Data are the same thing?

1 Answers  


Demonstrate with an example how you can code in LISP?

1 Answers  


Explain List of artificial intelligence projects?

0 Answers  


 What is the output of the given statement in LISP? * (setf l1 (list ‘a ‘b ‘c)) * (setf l2 (list ‘a ‘b)) * (setf l1 l2) a) A B b) A B C c) B C d) None of the mentioned

1 Answers  


Which is used to construct new lists by linking the right pointers? a) Links b) List c) Variables d) Right pointers

1 Answers  


Categories