Subject

    Computer Science

    Topic

    Artificial Intelligence

    What is the role of variables in PROLOG?

    a)
    They store memory addresses
    b)
    They are bound to values through unification
    c)
    They act like constants
    d)
    They define loop control

    Explanation

    A PROLOG variable gets a value when it is matched (unified) with a term while answering a query.

    Find Tutors

    View all Tutors