What is the output of the following statement?
* ( first (rest (first ‘((a b) (c d)))))
a) a
b) b
c) c
d) d



 What is the output of the following statement? * ( first (rest (first ‘((a b) (c d)))))..

Answer / chaitanya

b

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI Languages Interview Questions

Which is used to build the lisp procedures? a) Data b) Primitives c) Definition d) None of the mentioned

1 Answers  


 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))))))

1 Answers  


 Mention who is referred as a Member in Prolog?

1 Answers  


 What is the output of the following statement? * (+ 3.14 2.71) a) 3.14 b) 2.71 c) 5.84 d) 5.85

1 Answers  


 What is the output of the following statement in LISP? * (setf thing ‘point r 1) * (case thing (circle (*pi r r))(sphere (* 4 pi r r)) (otherwise 0)) a) 1 b) 0 c) 12.566 d) None of the mentioned

1 Answers  






Name the sector where prolog programming language is used?

1 Answers  


 In “cuts” what is the Parent goal in Prolog?

1 Answers  


 Explain why PROLOG language is stated as a procedural language?

1 Answers  


 What is the process of reserving a place in computer memory to store a value for a symbol? a) Storing b) Ranging c) Binding 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  


 Explain what is prolog programming language? What is it based on?

1 Answers  


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

1 Answers  


Categories