What will be the output of the following LISP statement? [code](symbol-name 'ABC)[/code]

What will be the output of the following LISP statement?
Code:
(symbol-name 'ABC)
A. “ABC”
B. ABC
C. ‘ABC
D. None of the mentioned
 
Answer: a
Explanation: “symbol-name” is used in symbol-manipulation. This primitive returns the argument provided to it in double quotes. So, here ABC was provided as argument and symbol-name return it as “ABC”.
Output: “ABC”
 

Tìm kiếm

Back
Top