What is the output of the given statement?
* (setf pressure 3)
* (when-plusp pressure (print ‘alarm));
a) Alarm
b) Alarm
Alarm
c) 1
d) Nil



 What is the output of the given statement? * (setf pressure 3) * (when-plusp pressure (print..

Answer / chaitanya

b

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI Languages Interview Questions

 Explain what is the importance of the hash table in LISP?

1 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  


What does the language of fopl consist of?

0 Answers  


 Which require sophisticated precedence compputation? a) Superclass b) Multiple Superclass c) Subclass d) None of the mentioned

1 Answers  


Explain what is slot and what are the most commonly used slot options?

1 Answers  






Which keyword is used to define the method? a) Defun b) Destruct c) Demake d) Defmethod

1 Answers  


 What is the output of the given statement in LISP? * (Setf part-bins (make-array ‘(4))) a) #Done b) #4 c) #(0 0 0 0) d) None of the mentioned

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? * (setf breakfast ‘(eggs bacon toast tea)) * (cond ((> (length breakfast) 10) ‘glutton) ((not (endp breakfast)) ‘normal)(t ‘anorexic)) a) Anorexic b) Breakfast c) Eggs d) Normal

1 Answers  


 What is the output of the following statement? * (setf x ‘outside) * (let ((x ‘inside) (y x)) (list x y)) a) Outside b) Inside c) Inside Outside d) Outside Inside

1 Answers  


Explain what is CLOS in LISP? What are the goals of the common lisp object system?

1 Answers  


 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

1 Answers  


Categories