?
In LISP, the addition 3 + 2 is entered as
Answer & Solution
Correct Answer:
Option
D
In LISP, mathematical operations are typically written in prefix notation, where the operator precedes its operands within parentheses.
So, the addition of 3 and 2 is represented as (+ 3 2).
Options A, B, and C do not follow the syntax of LISP for arithmetic operations.
Therefore, the correct LISP notation for the addition 3 + 2 is Option D: (+ 3 2).
So, the addition of 3 and 2 is represented as (+ 3 2).
Options A, B, and C do not follow the syntax of LISP for arithmetic operations.
Therefore, the correct LISP notation for the addition 3 + 2 is Option D: (+ 3 2).
Join the Discussion
Login to post a comment or share your explanation.
Login