adplus-dvertising
frame-decoration

Question

What is the output of the given statement?
span class="sy0"> * (defun when-plusp-with-bug (number result);
  (when (plusp number) result));
span class="sy0"> * (setf pressure -2)
* (when-plusp-with-bug pressure (print 'alarm))

a.

Alarm

b.

Nil

c.

Both Alarm & Nil

d.

None of the mentioned

Answer: (c).Both Alarm & Nil

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the given statement?

Similar Questions

Discover Related MCQs

Q. Which mechanism makes it easy to create and to complete template like expressions?

Q. Which isolates an entire expression from evaluation?

Q. Which are perfect for making and filling using backquote mechanism?

Q. Which is used to spliced the elements in the list?

Q. Which simplifies the macro writing?

Q. Which will be simplified by using backquote mechanism?

Q. What is the process of creating new data types in lisp?

Q. Which is the primitive that creates new structure types?

Q. What should be used with structure names with a combination?

Q. Which enables storage in procedurally indexed places?

Q. Which creates reader procedures for getting things out of an instance fields?

Q. Which makes it possible to define generic functions?

Q. What is meant by collection of methods the same name?

Q. Which keyword is used to define the method?

Q. Which class can help to select a method?

Q. Which require sophisticated precedence computation?

Q. Which makes it possible to define sophisticated generator procedures that produce new values?

Q. Which primitive enables you to define one procedure inside another?

Q. Which helps to produce nested fences?

Q. Which do not produce nested fences?