Which of the following function returns t If the object is a symbol m LISP? A. (* ) B. (symbolp ) C. (nonnumeric ) D. (constantp ) E. None of the above

(* <object>)
(symbolp <object>)
(nonnumeric <object>)
(constantp <object>) E. None of the above

The correct answer is B. (symbolp ).

The function (symbolp ) returns t if the object is a symbol. A symbol is a Lisp object that represents a name. Symbols are used to represent variables, functions, and constants.

The function (* ) returns the product of the object and itself. The function (nonnumeric ) returns t if the object is not a number. The function (constantp ) returns t if the object is a constant.

Exit mobile version