Which of the following prolog programs correctly implement “if G succeeds then execute goal P else execute goal $\theta$”?
- Aif-else (G, P, $\theta$):-!,call(G), call(P). if-else (G,P, $\theta$) :- call($\theta$).
- Bif-else (G, P, $\theta$):-call(G), !, call(P). if-else (G,P, $\theta$) :- call($\theta$).
- Cif-else (G, P, $\theta$):-call(G), call(P), !. if-else (G,P, $\theta$) :- call($\theta$).
- DAll of the above