Answer
$ a.\quad$ Not one-to-one
$b.\quad -$
Work Step by Step
$ a.\quad$
The function is a constant function.
Its graph is a horizontal line.
It therefore fails the horizontal line test, as
the horizontal line $y=8$ "intersects" the graph in infinitely many points.
$ b.\quad$
-