adplus-dvertising
frame-decoration

Question

What is the output of the following LISP program? (NOTE: * means new line)
(defun b(p) (+ p p) )
* (setq z 1)
* (b z)

a.

2

b.

1

c.

3

d.

error

Answer: (a).2

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? (NOTE: * means new line)

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?