Question
span class="sy0"> * (defstruct triangle (base 0) (altitude 0))
* (defun area (figure) (cond ((triangle-p figure) (* 1/2 (triangle-base figure) (triangle-altitude figure)))))
* (setf triangle (make-triangle :base 2 :altitude 3))
* (area triangle)
a.
Triangle
b.
7
c.
3
d.
10
Posted under Artificial Intelligence
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?
View solution
Q. Which primitive enables you to define one procedure inside another?
View solution
Q. Which helps to produce nested fences?
View solution
Q. Which do not produce nested fences?
View solution
Q. Which makes nameless procedures into lexical closures?
View solution
Q. Which is a string of boxes linked by arrow like pointers?
View solution
Q. What is the other name of boxes?
View solution
Q. Which is used to construct new lists by linking the right pointers?
View solution
Q. Which can be represented in bytes?
View solution
Q. Which can build new lists by depositing pointers in free boxes?
View solution
Q. Which have the ability to propagate numbers through arithmetic boxes?
View solution
Q. Which is used to represent assertions and logical constraints?
View solution
Q. What is the process of combining assertions and logical constraints?
View solution
Q. Which propagate probability bounds through logic boxes?
View solution
Q. Which functions are used to enforce constraints?
View solution
Q. Which constraint has the parameter that identifies where the constraint is coming from?
View solution
Q. Which procedure is used as key element in a backward chaining algorithm?
View solution
Q. What is the way of expressing an ordinary expression in terms of bits?
View solution
Q. What is the name of elements present in patterns?
View solution
Q. Which keeps variable binding on an association list?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Artificial Intelligence? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!