Artificial Intelligence Mastery Quiz

10:00

Search, knowledge representation, generative AI, vision, language and agents. · 10 questions

Question 1 of 10
On an unweighted graph, which search always returns a path with the fewest steps?
Question 2 of 10
In an expert system, which component decides which rules fire and in what order?
Question 3 of 10
Which task suits a generative model rather than a traditional classifier?
Question 4 of 10
Which of these is a computer vision task?
Question 5 of 10
With this heuristic, A* on a weighted graph behaves exactly like which algorithm?
h = lambda node: 0
path, cost = a_star(graph, start, goal, h)
Question 6 of 10
How many facts does `forward_chain` end with here?
RULES = [
    ({"supplies_goods", "turnover_above_40l"}, "must_register_for_gst"),
    ({"must_register_for_gst"}, "files_monthly_returns"),
]
case = {"supplies_goods", "turnover_above_40l"}
print(len(forward_chain(case, RULES)))
Question 7 of 10
A bank must explain every rejected loan application to the customer and the regulator. Which approach fits best?
Question 8 of 10
In a tool-calling agent, what happens immediately after the model returns a tool call?
if response.stop_reason == "tool_use":
    result = run_tool(call.name, call.input)
    messages.append({"role": "user", "content": tool_result(call.id, result)})
Question 9 of 10
A routing heuristic uses straight-line distance multiplied by 1.5 to allow for detours. Why can A* now return a sub-optimal route?
Question 10 of 10
Which change most reduces the risk of an agent taking a harmful, irreversible action?