In LISP, the addition 3 + 2 is entered as
A. 3 + 2
B. 3 add 2
C. 3 + 2 =
D. (+ 3 2)
E. None of the above
Answer: Option D
Solution(By Examveda Team)
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).
Join The Discussion
Comments ( 1 )
What is the term used for describing the judgmental or commonsense part of problem solving?
A. Heuristic
B. Critical
C. Value based
D. Analytical
E. None of the above
What stage of the manufacturing process has been described as "the mapping of function onto form"?
A. Design
B. Distribution
C. project management
D. field service
E. None of the above
Which kind of planning consists of successive representations of different levels of a plan?
A. hierarchical planning
B. non-hierarchical planning
C. All of the above
D. project planning
E. None of the above
What was originally called the "imitation game" by its creator?
A. The Turing Test
B. LISP
C. The Logic Theorist
D. Cybernetics
E. None of the above
5 hobe