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 |
What are the variables that are bound and that have values assigned to them? a) Data b) Variable c) Parameters d) None of the mentioned
Which exploit the fact that lisp forms are just expressions meant to be evaluated? a) List b) Procedure c) Macro d) None of the mentioned
Explain what is a predicate in LISP?
Which checks the evaluated key form against the unevaluated keys using EQL? a) COND b) CASE c) NIL d) SETF
What is the output of the given statement in LISP? * (setf bins (make-array 2 :initial-element ‘e)) a) E b) E E c) E E E d) E E E E
What is the output of the following statement? * (setf book (book=author-writer book ‘(guy steele))) a) Guy b) Steele c) Error d) None of the mentioned
How many access procedures are avilable in lisp? a) 1 b) 2 c) 3 d) 4
Which process helps to build large and complicated programs in LISP? a) Macros b) Procedure abstraction c) Defun d) None
What is the output of the given statement in LISP? * (setf part (make-array ‘(8 8))) a) 8 b) 0 0 0 0 0 0 0 0 c) 0 0 0 0 d) 8 rows of 0
What is meant by collection of methods the same name? a) Lisp class b) Class c) Generic function d) None of the mentioned
Explain why PROLOG language is stated as a procedural language?
Which has a template that calls for particularly peculiar argument evaluation? a) COND b) Consequent c) Trigger d) Sphere