Question: ( d ) [ 2 points ] What is the scope of a variable in a Prolog rule? Local to the rule and all instances
d points What is the scope of a variable in a Prolog rule?
Local to the rule and all instances of the variable within the rule must unify.
Local to the rule and the instances of the variable within the rule need not unify.
It depends on whether the variable name begins with an uppercase or lowercase letter.
Global.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
