adplus-dvertising
frame-decoration

Question

What is the output of the following statement?
span class="sy0"> * '(first (first (rest (rest ((a b) (c d) (e f))))))

a.

a

b.

b

c.

ab

d.

(FIRST (FIRST (REST (REST ((A B) (C D) (E F))))))

Answer: (d).(FIRST (FIRST (REST (REST ((A B) (C D) (E F))))))

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following statement?

Similar Questions

Discover Related MCQs

Q. Choose the correct option for the output when lower or upper-case arguments are given in LISP.

Q. Which primitive can be used to create a list?

Q. Which primitive can be used to remove an element from List?

Q. Which primitive can be used to add an element to List?

Q. Are arithmetic operators primitives in LISP?

Q. What is the output of (/ 6 3) and (- 6 4)?

Q. Which is used to build the lisp procedures?

Q. Which primitive removes all but the last element from the list?

Q. What is a symbol thought of as a name for a place to store value?

Q. How many types of variables are available in lisp?

Q. What are the variables that are bound and that have values assigned to them?

Q. In LISP, symbol represents a _____

Q. Which primitive is used to define a procedure?

Q. Can the parameters be passed to procedures in LISP?

Q. Can the actual parameters and formal parameters be of same name?

Q. Does value of an actual parameter change in the procedure?

Q. Which arranges for parameters to be bound on entering a procedure?

Q. How does LET generally begins with?

Q. What will happen if a variable had not assigned a value by SETF form?

Q. What is the alternative of LET for parameter binding?