Consider the rule given below:
test( [ ], 0 ).
test( [ _ | T ], N ) :- test ( T, M ) , N is M+1.
Mark all the TRUE statements.
a) The above rule tests whether N is successor of M and both N and M are positive integers.
b)The above rule computes length of a list.
c)‘is’ operator, in the above program, can be replaced by ‘=’.
d)‘is’ operator evaluates arithmetic expressions
note:choose mutiple answers
Answers
Answered by
0
the above rule computes the length of a list
Similar questions
English,
8 months ago
English,
1 year ago
Computer Science,
1 year ago
Biology,
1 year ago
Science,
1 year ago