Explain what is LISP constants?
Answer / chaitanya
In LISP, during execution constants are variables that never change their values. Using the defconstant construct constants are declared.
Is This Answer Correct ? | 0 Yes | 0 No |
Explain what is the difference between bagof/3 and setof/3 predicate in Prolog?
Explain where you use + operator in Prolog?
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
What is the output of the given statement? * (endp ‘(this is not empty)) a) T b) NIL c) Error d) None of the mentioned
Which creates reader procedures for getting things out of an instance fields? a) Structure in LISP b) Defstruct c) Class d) Object
Mention what is the difference between = and = = in Prolog?
Explain what is recursion in Prolog?
Which notation facilitates uniformity in lisp? a) Prefix b) Postfix c) Infix d) None of the mentioned
What should be used with structure names with a combination? a) Make- b) Make c) Create d) Deploy
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
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
In “cuts” what is the Parent goal in Prolog?