Question
Determine whether the following operations define a binary operation on the given set or not:
$'O\ '$ on $Z$ defined by $a O b = a^b$ for all $\text{a, b}\in\text{Z.}$
$'O\ '$ on $Z$ defined by $a O b = a^b$ for all $\text{a, b}\in\text{Z.}$