Explain what is Local Variables?
Answer / chaitanya
With a given procedure local variables are defined. The parameters named as arguments within a function are also referred as local variables. They are accessible only within the respective function.
Is This Answer Correct ? | 0 Yes | 0 No |
Explain what is setq is used for in LISP?
What is the output of the given statement? * (setf pressure -3) * (when-plusp pressure (print ‘alarm)); a) T b) Nil c) Alarm d) None of the mentioned
What is the output of the following statement? * (defun book-author (book) (second book)) * (setf book-example-1 ‘((Artificial Intelligence) (Patrick) (Technical AI))) * (book-author book-example-1) a) Artificial Intelligence b) Patrick c) Technical AI d) None of the mentioned
Explain with an example what is “Setof” predicate in Prolog?
Tell Me In Autocad Software How Can U Find All Command List And How Can You Change Them Like L For Line After Changing You Can Use LLP As a Line Command
Mention who is referred as a Member in Prolog?
Mention how many types of variables available is LISP? Explain what are the variables that are bound, and that have values assigned to them?
What is the output of the following statement? *(setf thing ‘sphere r 1) * (cond ((eq thing ‘circle) (* pi r r)) ((* 4 pi r r))) a) 10.566 b) 11.5683 c) 12.56637 d) 13
Which is used to build the lisp procedures?
Which do not evaluate their arguments in LISP? a) List b) Procedure c) Setf d) Macros
What is the output of the following statement? * (setf thing ‘point r 1) * (case thing (circle (*pi r r))(sphere (* 4 pi r r))) a) 1 b) 12.56637 c) NIL d) T
What is the output of the following statement? * (defun make (title author) (list (list ‘title title) (list ‘author author))) * (setf book (make ‘(Common Lisp) ‘(Guy steele))) a) Common Lisp b) Guy steele c) Make d) ((TITLE (COMMON LISP)) (AUTHOR (GUY STEELE)))