Demonstrate with an example how you can code in LISP?
Answer / chaitanya
Almost everything in LISP is a function, even the mathematical operators.
Is This Answer Correct ? | 0 Yes | 0 No |
Explain what is slot and what are the most commonly used slot options?
Explain why matching variable is important in Prolog? What is the method to match variables?
Which checks the evaluated key form against the unevaluated keys using EQL? a) COND b) CASE c) NIL d) SETF
Explain what is the importance of the hash table in LISP?
Which is uses their arguments to build intermediate forms and evaluating them to produce a value? a) Backquote b) Macros c) List d) Procedures
Explain with an example what is “Setof” predicate in Prolog?
Explain why PROLOG language is stated as a procedural language?
Which is a procedures supplied by user in terms of primitives? a) Custom b) User-defined c) Definite d) All of the mentioned
How many items are available in mapping primitives are there? a) 3 b) 4 c) 5 d) 6
Explain what is SWI-Prolog?
What is the output of the following statement? * ‘(first (first (rest (rest ((a b) (c d) (e f)))))) a) a b) b c) ab d) (FIRST (FIRST (REST (REST ((A B) (C D) (E F))))))
What is the output of the following statement? * (defun make (title author) (list (list ‘title title) (list ‘author author))) * (setf book (make ‘(Common Lisp) ‘(Guy steele))) a) Common Lisp b) Guy steele c) Make d) ((TITLE (COMMON LISP)) (AUTHOR (GUY STEELE)))