Mention why you have to use “is” instead of “=” in Prolog when it comes to applying calculation logic?
Answer / chaitanya
“=” triggers unification in Prolog
“is” triggers arithmetic evaluation in Prolog
So, in Prolog you cannot use “=” when you want to calculate something like 2+4=6, but instead you have to use 2+4 is 6.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain what is prolog programming language? What is it based on?
Which is a string of boxes linked by arrow like pointers in LISP? a) Lisp b) List c) Variables d) Pointers
Mention what is Cut (!) in Prolog and what is the advantage of ‘Cut’ and ‘Negation’?
What is the output of the given statement in LISP? * (setf fact1 ‘(big computers are nice)) * (setf (first fact1) ‘fast) a) Big computers b) Fast c) Big computers are fast d) None of the mentioned
How many access procedures are avilable in lisp? a) 1 b) 2 c) 3 d) 4
Mention what are the three functions required by LISP?
Which is a procedures supplied by user in terms of primitives? a) Custom b) User-defined c) Definite d) All of the mentioned
Explain what is the importance of the hash table in LISP?
Mention why you have to use “is” instead of “=” in Prolog when it comes to applying calculation logic?
What are the different nlp tasks deep learning can be applied?
Which keyword is used to define macro procedures in LISP? a) Defun b) Demacro c) Defmacro d) None of the mentioned
What is the output of the given statement in LISP? * (setf abc ‘(a b c) xyz ‘(x y z)) * (setf bc (rest abc)) * bc a) A b) B c) C d) BC
AI Algorithms (74)
AI Natural Language Processing (96)
AI Knowledge Representation Reasoning (12)
AI Robotics (183)
AI Computer Vision (13)
AI Neural Networks (66)
AI Fuzzy Logic (31)
AI Games (8)
AI Languages (141)
AI Tools (11)
AI Machine Learning (659)
Data Science (671)
Data Mining (120)
AI Deep Learning (111)
Generative AI (153)
AI Frameworks Libraries (197)
AI Ethics Safety (100)
AI Applications (427)
AI General (197)
AI AllOther (6)