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



 What is the output of the following statement? * (setf x ‘outside) * (let ((x ‘i..

Answer / chaitanya

c

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI Languages Interview Questions

 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

1 Answers  


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

1 Answers  


Which creates reader procedures for getting things out of an instance fields? a) Structure in LISP b) Defstruct c) Class d) Object

1 Answers  


 Explain LISP-Vectors?

1 Answers  


Mention how many types of variables available is LISP? Explain what are the variables that are bound, and that have values assigned to them?

1 Answers  






 Which keyword embeds the initial element in an array in LISP? a) Initial b) Initial-content c) Initial-element d) None of the mentioned

1 Answers  


Which exploit the fact that lisp forms are just expressions meant to be evaluated? a) List b) Procedure c) Macro d) None of the mentioned

1 Answers  


 What is the value of last consequent form in the triggered clause? a) Value of the entire COND b) Trigger c) Consequent d) All of the mentioned

1 Answers  


 What is the output of the following statement? * (first ‘( p h w)) a) P b) H c) W d) phw

1 Answers  


 Is it possible to call LISP functions from other languages?

1 Answers  


 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))) * (defun book-author-writer (book author) (cons (list ‘author author) book)) a) Book b) Book-author c) Book-author-writer d) None of the mentioned

1 Answers  


 What is a symbol thought of as a name for a place to store value? a) Data b) Variable c) Parameters d) None of the mentioned

1 Answers  


Categories