adplus-dvertising
frame-decoration

Question

What is the output of the following LISP program?
(setf chess '(king queen))
(write (cons 'rook chess))

a.

rook king queen

b.

king queen rook

c.

king queen

d.

rook

Answer: (a).rook king queen

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 LISP program?

Similar Questions

Discover Related MCQs

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?

Q. Which helps you to write procedures on complicated things?

Q. What is a procedure that returns a value that signals true or false?

Q. Which primitive tests two arguments to see if their values are the same expression?

Q. Which predicate tests to see if its first argument is an element of its second argument?