adplus-dvertising
frame-decoration

Question

What is the output of the given statement?
span class="sy0"> * (defstruct circle (radius 0))
* (defun area (figure) (cond ((circle-p figure) (* pi (expt (circle-radius figure) 2)))))
* (setf circle (make-circle :radius 11))
* (area circle)

a.

44

b.

380

c.

382

d.

380.132

Answer: (d).380.132

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 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?

Q. Which makes nameless procedures into lexical closures?

Q. Which is a string of boxes linked by arrow like pointers?

Q. What is the other name of boxes?

Q. Which is used to construct new lists by linking the right pointers?

Q. Which can be represented in bytes?

Q. Which can build new lists by depositing pointers in free boxes?

Q. Which have the ability to propagate numbers through arithmetic boxes?

Q. Which is used to represent assertions and logical constraints?

Q. What is the process of combining assertions and logical constraints?

Q. Which propagate probability bounds through logic boxes?

Q. Which functions are used to enforce constraints?

Q. Which constraint has the parameter that identifies where the constraint is coming from?

Q. Which procedure is used as key element in a backward chaining algorithm?

Q. What is the way of expressing an ordinary expression in terms of bits?

Q. What is the name of elements present in patterns?

Q. Which keeps variable binding on an association list?