The answer is A. Because I spent three hours on my homework.
This fragment provides a verb statement, but there is no subject preceding this statement. A sentence must have a subject-verb agreement to be considered a sentence. Without one or the other, it is a sentence fragment.