Explain what is SWI-Prolog?
Answer / chaitanya
SWI-Prolog is a free prolog compiler licensed under GPL, targeting primarily the research and education.
Is This Answer Correct ? | 0 Yes | 0 No |
What will happen if the value of all the test-forms are nil? a) Nothing b) COND form is nil c) Both a & b d) None of the mentioned
What is the output of the given statement? * (defclass article() ((title :accessor article-title :initarg :title) (author :accessor article-author :initarg :author))) * (defclass computer-article (article) ()) * (defclass business-article (article) ()) * (defclass political-article (article) ()) * (setf articles (list (make-instance ‘business-article :title “Memory Prices down”))) a) Business article b) Political article c) Business article
Why in prolog it is said that Program and Data are the same thing?
Which has a template that calls for particularly peculiar argument evaluation? a) COND b) Consequent c) Trigger d) Sphere
Explain what is CLOS in LISP? What are the goals of the common lisp object system?
What is the output of the given statement? * (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) 6 d) 10
What is the programming structure for LISP?
In “cuts” what is the Parent goal in Prolog?
Explain what is LISP constants?
Which notation facilitates uniformity in lisp? a) Prefix b) Postfix c) Infix d) None of the mentioned
Explain why matching variable is important in Prolog? What is the method to match variables?
Is it possible to call LISP functions from other languages?