Why in prolog it is said that Program and Data are the same thing?
Answer / chaitanya
In Prolog, data and program both are implemented as the bunch of trees. There is no difference between a rule that causes operations to happen and a rule that just gives back a data value.
Is This Answer Correct ? | 0 Yes | 0 No |
Mention what is Cut (!) in Prolog and what is the advantage of ‘Cut’ and ‘Negation’?
. What is the output of the given statement? * (setf high 98 temperature 102) * (when (> temperature high) (setf high temperature) ‘new-record) * high a) 98 b) 102 c) new d) Error
Mention what is the difference between = and = = in Prolog?
What is the process of reserving a place in computer memory to store a value for a symbol? a) Storing b) Ranging c) Binding d) None of the mentioned
What is the output of the following statement in LISP? * (setf thing ‘point r 1) * (case thing (circle (*pi r r))(sphere (* 4 pi r r)) (otherwise 0)) a) 1 b) 0 c) 12.566 d) None of the mentioned
What is the output of the given statement in LISP? * (setf abc ‘(a b c) xyz ‘(x y z)) * abc a) A b) B c) ABC
Explain LISP-Vectors?
Explain what is slot and what are the most commonly used slot options?
Which is a string of boxes linked by arrow like pointers in LISP? a) Lisp b) List c) Variables d) Pointers
Which is used to build the lisp procedures? a) Data b) Primitives c) Definition d) None of the mentioned
What is the process of arranging procedures into layers? a) Procedure b) Abstraction c) Abstraction layers d) Procedure abstraction
Which process helps to build a large and complicated programs in LISP? a) Abstraction b) Mapping c) Data abstraction d) None of the mentioned