What is the difference between the appearance of macro and ordinary definition in LISP?
a) Argument list
b) Reture value
c) Just the defining keyword
d) None of the mentioned



What is the difference between the appearance of macro and ordinary definition in LISP? a) Argument..

Answer / chaitanya

C

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI Languages Interview Questions

Explain with an example what is “Setof” predicate in Prolog?

1 Answers  


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

1 Answers  


 What is the output of the following statement? * (cdr ‘(a b c)) a) a b) B c) (B C) D) None of the mentioned

1 Answers  


 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

1 Answers  


Which is used to seperate the abstraction layers? a) Abstraction boundaries b) Data c) Procedure d) All of the mentioned

1 Answers  






 Mention what is the difference between = and = = in Prolog?

1 Answers  


 Which class can help to select a method? a) Nonoptional argument b) Class c) Method d) None of the method

1 Answers  


 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)) * (setf (person-surname person-instance-1) ‘winston) a) Winston b) Nil c) T d) Error

1 Answers  


What is the output of the following statement? * (setf p .6) * (cond ((> p .75) ‘very-likely)((> p .5) ‘likely)((> p .25) ‘unlikely)(t ‘very-unlikely)) a) Very-likely b) Likely c) Unlikely d) Very-unlikely

1 Answers  


 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

1 Answers  


Mention what is the difference between Prolog and normal programming language?

1 Answers  


 How many items are available in mapping primitives are there? a) 3 b) 4 c) 5 d) 6

1 Answers  


Categories