Which of the following function returns t if the object is a number in LISP? A. (number ) B. (numberp ) C. (numericp ) D. (numeric ) E. None of the above

(number <object>)
(numberp <object>)
(numericp <object>)
(numeric <object>) E. None of the above

The correct answer is B. (numberp ).

The function (numberp ) returns t if the object is a number.

The function (numericp ) returns t if the object is a number or a string that can be converted to a number.

The function (numeric ) returns the object as a number.

The function (number ) is not a valid function in Lisp.

Exit mobile version