Determining a function based on finite sequences

<p>I have a quick question about determining a function based on finite sequences. I would really appreciate your help with these questions</p>

<p>Determine if the given procedure is or is not a function from X to Y.</p>

<ol>
<li>Let X be the set of (finite) non-empty sequences of nonnegative integers and let Y be the set of nonnegative integers.
(a) The procedure that, given a finite sequence, outputs y if and only if y is the seventh term of the sequence.
(b) The procedure that outputs n if and only if n is twice the length of the sequence.
(c) The procedure that outputs Y if and only if Y is greater than the last term of the sequence.
(d) The procedure that outputs the number 17 regardless of the input.</li>
</ol>

<p>Thanks!</p>