FullofDill's answer is perfectly acceptable, but I just wanted to challenge myself to create a non-piecewise PMF for these, because it seemed like a neat challenge!
For Part a, Obviously we start knowing that our denominator for our probability will be 10, and we can see that as long as $y$ is in range, $y\geq2$ - So we can start with 2 as a constant in our numerator:
$$P(Y=y)= \frac{2+?}{10}$$
We know that if y is less than 2, we need to add 1 to the denominator. There's a few options to add a one if $x<n$, in this case the easier options was to use the floor function and some odd arithmetic to make a statement that subtracts 1 if y > 2, and then subtract that to get what we want:
$$P(Y=y)= \frac{2-\left \lfloor \frac{y-2}{2} \right \rfloor}{10}$$
This, of course, will only work if $0 \leq y \leq 3$.
Part b is much more complicated. The function needs to return $\frac{4}{10}$ if $y=\{0,6\}$, $\frac{1}{10}$ if $y=\{1,2\}$ and 0 otherwise. I racked my head for an hour or so trying to think of an approach that would work for all three options, but every option I thought of had some flaw that made it useless. I admit defeat: the following piecewise PMF is probably the most succinct and straightforward answer for Part b:
$$P(Y=y)=\begin{cases}
\frac{4}{10} & y=0,6 \\
\frac{1}{10}& y=1,2 \\
0 & \text{ otherwise}
\end{cases}$$
In regard to your final question, PMF is short for "Probability Mass Function" - it is, indeed, a probability distribution function, but it is explicitly a function for discrete random variables. Mass Functions are built such that when you plug in the value of your random variable (and any other parameters), the function returns the probability for that single value, and so are usually pretty straightforward to deal with.
This is in opposition to a Probability Density Function, used for continuous random variables. Because Density functions deal with continuous variables, it's not useful to consider single values of that variable, because that's dealing with an infinitesimal point - the probability of any single value for a continuous function is 0. Instead, for continuous random variable, we specify a range of interest (with a minimum and maximum), and then integrate the density function within that range to get the probability of that range (yes, this does involve calculus). In effect, A density function is generally built so that the area under the curve is equal to the probability, not the value of the function at any point.
Both of these functions are "probability distribution functions", but if a text specifies one or the other, it's usually giving you a clue as to the nature of the random variable you're dealing with. It's also worth noting that many Density Functions have Mass Function equivalents and vice versa!