The verb must agree with the subject.
Subjects can never be in a prepositional phrase.
What is the subject?
Is it singular or plural?
The quality of the pens.........not good.(was/were)
4 answers
The quality of the pens was not good.
Was,. Because it talks about all the pens singularly
The answer should be was as the "quality" denotes a singular meaning.