What is the output of the following statement?
* (defun book-author (book) (second book))
* (setf book-example-1 ‘((Artificial Intelligence) (Patrick) (Technical AI)))
* (book-author book-example-1)
a) Artificial Intelligence
b) Patrick
c) Technical AI
d) None of the mentioned



What is the output of the following statement? * (defun book-author (book) (second book)) * (setf ..

Answer / chaitanya

b

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI Languages Interview Questions

 Explain why PROLOG language is stated as a procedural language?

1 Answers  


Which is present in the writer procedure for arrays in LISP? a) Setf b) Aref c) Fref d) Both a & b

1 Answers  


Which makes it possible to define generic functions? a) Lisp b) CLOS c) Class d) Object-Oriented programming

1 Answers  


 Which is a procedures supplied by user in terms of primitives? a) Custom b) User-defined c) Definite d) All of the mentioned

1 Answers  


Which keyword is used to define macro procedures in LISP? a) Defun b) Demacro c) Defmacro d) None of the mentioned

1 Answers  






Explain what is Local Variables?

1 Answers  


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

1 Answers  


 Is it possible to call LISP functions from other languages?

1 Answers  


What are the different nlp tasks deep learning can be applied?

0 Answers  


 What is the output of the following statement? * (setf x ‘outside) * (let ((x ‘inside) (y x)) (list x y)) a) Outside b) Inside c) Inside Outside d) Outside Inside

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? * (setf toss ‘(heads tails tails tails heads tails)) * (delete ‘heads toss) * toss a) Heads tails b) Heads tails tails tails tails c) Heads d) None of the mentioned

1 Answers  


Categories