What will be the value of p after the following statement? [code](setq p '(a b c d))[/code]

What will be the value of p after the following statement?
Code:
(setq p '(a b c d))
A. A B C D
B. B C D
C. A
D. Error
 
Answer: a
Explanation: The list is the arg2 of the setq primitive. This list is being stored in the variable p, where p is the arg1 of the setq. There will not be any error as everything is correct.
Output: A B C D
 

Tìm kiếm

Back
Top