Mention who is referred as a Member in Prolog?
Answer / chaitanya
Member is a Prolog tool that is used for configuring lists and to introduce the idea of recursing down lists.
Is This Answer Correct ? | 2 Yes | 1 No |
Explain what is LISP constants?
Which keyword is used to define the method? a) Defun b) Destruct c) Demake d) Defmethod
Explain where you use + operator in Prolog?
What is the output of the following statement? * (+ 3.14 2.71) a) 3.14 b) 2.71 c) 5.84 d) 5.85
What is the output of the given statement? * (setf pressure 3) * (when-plusp pressure (print ‘alarm)); a) Alarm b) Alarm Alarm c) 1 d) Nil
Mention what is the difference between = and = = in Prolog?
Which checks the evaluated key form against the unevaluated keys using EQL? a) COND b) CASE c) NIL d) SETF
Which is used to seperate the abstraction layers? a) Abstraction boundaries b) Data c) Procedure d) All of the mentioned
Explain what is setq is used for in LISP?
Which is the primitive that creates new structure types in LISP? a) Defnum b) Deftype c) Defstruct d) None of the mentioned
What is the output of the given statement in LISP? * (Setf part-bins (make-array ‘(4))) a) #Done b) #4 c) #(0 0 0 0) d) None of the mentioned
Explain what is slot and what are the most commonly used slot options?