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 is the output of the given statement? * (defstruct person (sex nil) (personality ‘nice)) * (setf person-instance-1 (make-person)) * (setf person-instance-2 (make-person :sex ‘female)) * (person-p ‘(this is a list — not a person instance)) a) Female b) Nice c) T d) Nil
What is the programming structure for LISP?
What is the output of the given statement in LISP? * (setf l1 (list ‘a ‘b ‘c)) * (setf l2 (list ‘a ‘b)) * (setf l1 l2) a) A B b) A B C c) B C d) None of the mentioned
Explain what is Local Variables?
Mention what are the three functions required by LISP?
Pick out the correct statement about macro. a) Macro is dependant. b) Macro is interoperable c) Macro is complex d) Macro deserve their own file
Mention how many types of variables available is LISP? Explain what are the variables that are bound, and that have values assigned to them?
What is the output of the given statement? * (defstruct person (sex nil) (personality ‘nice)) * (setf person-instance-1 (make-person)) * (setf person-instance-2 (make-person :sex ‘female)) a) Person :sex female :personality nice b) Person :sex c) Sex:Female d) None of the mentioned
Explain what is LISP constants?
Which keyword is used to define macro procedures in LISP? a) Defun b) Demacro c) Defmacro d) None of the mentioned
What is partly embedded in the knowledge of your programming for manipulating applications? a) Programming cliches b) Procedures c) Abstraction d) Data
Mention what are the two pre-defined packages used in LISP?