What is the output of the given statement in LISP?
* (setf abc ‘(a b c) xyz ‘(x y z))
* (setf bc (rest abc))
* bc
a) A
b) B
c) C
d) BC



 What is the output of the given statement in LISP? * (setf abc ‘(a b c) xyz ‘(x y..

Answer / chaitanya

d

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI Languages Interview Questions

Explain what is CLOS in LISP? What are the goals of the common lisp object system?

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)) a) Person :sex female :personality nice b) Person :sex c) Sex:Female d) None of the mentioned

1 Answers  


Explain what is the difference between bagof/3 and setof/3 predicate in Prolog?

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  


Which abstractions have a prescribed behavior? a) Auxiliary procedures b) Procedure abstraction c) Primary procedures d) None of the mentioned

1 Answers  






 What is the output of the given statement? * (setf day-or-date ‘monday) * (if (symbolp day-or-date) ‘day ‘date) a) Monday b) Day c) Date d) None of the mentioned

1 Answers  


What is the output of the following statement? * (setf whole-list ‘(monday tuesday wednesday thursday friday)) * (defun both-ends ()(setf whole-list (cons (first whole-list) (last whole-list)))) a) Monday b) BOTH-ENDS c) Friday Monday d) Monday Friday

1 Answers  


 Is it possible to call LISP functions from other languages?

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 given statement in LISP? * (Setf part-bins (make-array ‘(4))) * (setf (aref part-bins 0) ‘nails); * (setf (aref part-bins 1) ‘nuts); * (setf (aref part-bins 2) ‘bolts) * (setf (aref part-bins 3) ‘bike) * (aref part-bins 2) * (setf (aref part-bins 4) ‘car) a) Nails b) Nuts c) 2 d) Error

1 Answers  


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

1 Answers  


Which is a string of boxes linked by arrow like pointers in LISP? a) Lisp b) List c) Variables d) Pointers

1 Answers  


Categories