Subject

    Computer Science

    Topic

    Artificial Intelligence

    Which of the following statements about PROLOG is TRUE?

    a)
    It answers queries using pattern matching (unification) and backtracking
    b)
    It requires the programmer to write loops for every search
    c)
    It is mainly used for numeric computation
    d)
    It executes statements strictly line by line like C

    Explanation

    PROLOG unifies the query with facts and rule heads, and backtracks to try alternatives when a branch fails.

    Find Tutors

    View all Tutors