+1 vote
in Artificial Intelligence by
In LISP, what is the function assigns the symbol x to y?

(a) (setq y x)

(b) (set y = ‘x’)

(c) (setq y = ‘x’)

(d) (setq y ‘x’)

The question was asked during an online exam.

The origin of the question is LISP Programming in chapter LISP Programming of Artificial Intelligence

Select the correct answer from above options

Interview Questions and Answers, Database Interview Questions and Answers for Freshers and Experience

1 Answer

0 votes
by
The correct option is (d) (setq y ‘x’)

To explain I would say: None.
...