Answer:
For the first picture, I think it is C and the second one should be A.
Explanation:
You use vertical lines and if it hits it multiple times it is not a function. Like if it hits two dots or something it is not a function. I hope that make sense, let me know if it doesn't.