adplus-dvertising
frame-decoration

Question

What will be output of the following LISP program?
(defun b(z) (+ z z) )
* (setq z 1)
* (write b z)

a.

Error

b.

2

c.

1

d.

no output

Answer: (b).2

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be output of the following LISP program?

Similar Questions

Discover Related MCQs

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?

Q. What is meant by keyword argument?

Q. Which is used to produce a procedure object from a procedure name?

Q. Which of the following is used by member primitive to compare arguments?

Q. Which among these are the data type predicates?

Q. What is the use of zerop?

Q. Integerp and Zerop will be same __

Q. In clause what the zero or more additional forms are called?

Q. What is the value of last consequent form in the triggered clause?

Q. What will happen if the value of all the test-forms are nil?

Q. Which has a template that calls for particularly peculiar argument evaluation?

Q. Which checks the evaluated key form against the unevaluated keys using EQL?

Q. Which process helps to build large and complicated programs?