Explain what is a predicate in LISP?
Answer / chaitanya
Predicates are one type of functions that test their arguments for specific conditions and returns nil value if condition is false and if condition is true it retrieves some non-nil value.
Is This Answer Correct ? | 0 Yes | 0 No |
Which is uses their arguments to build intermediate forms and evaluating them to produce a value? a) Backquote b) Macros c) List d) Procedures
What is the output of the given statement? * (setf pressure -3) * (when-plusp pressure (print ‘alarm)); a) T b) Nil c) Alarm d) None of the mentioned
Why in prolog it is said that Program and Data are the same thing?
Which is a string of boxes linked by arrow like pointers in LISP? a) Lisp b) List c) Variables d) Pointers
What is the output of the given statement? * (evenp (* 10 8 6 4 2)) a) T b) F c) NIL d) All of the mentioned
Explain with an example what is “Setof” predicate in Prolog?
How many access procedures are avilable in lisp? a) 1 b) 2 c) 3 d) 4
What is the output of the given statement? * (defmethod area ((figure rectangle)) (* (rectangle-width figure) (rectangle-height figure))) a) Area b) Rectangle c) Height d) Error
Which class can help to select a method? a) Nonoptional argument b) Class c) Method d) None of the method
Explain what is LISP? Give an example of some of the popular applications built in LISP?
Explain what is List structures in Prolog?
Which makes it easy to identify the first entry encountered that satisfies a given predicate? a) Reusing b) Revoking c) Template d) Filtering