Answer
a) Yes
b) No
c) Juana and Kiko
d) math273 and cs301
e) Juana and Kiko
Work Step by Step
a) YES
instructor(chan,math273) is a fact given to Prolog and Prolog then returns ?instructor(chan,math273) as yes.
b) NO
instructor(patel,cs301) is not a fact given to Prolog and Prolog then returns ?instructor(patel,cs301) as no.
c) Juana and Kiko
Prolog will determine every student that is enrolled in cs301
d) math273 and cs301
Prolog will determine every course that student Kiko is enrolled in.
e) Juana and Kiko
Prolog will determine the students that the teacher Grossman teaches.