In present tense sentences and present perfect tenses we use has with the third person singular:
"He has a pet dog."
"She has a boyfriend."
"It has rained all day" (present perfect)
"Susan has your pen."
"The car has a flat tyre."
'You' and 'I' use have.
"You have a nice apartment."
"I have a problem."
Plural nouns use have
"Dogs have better personalities than cats."
"My shoes have holes on them."
Singular nouns and uncountable nouns use has
"The traffic has made me late."
"Which shop has the best clothes."
Use this link for more detailed information: Using have and has
The exercise is pre-intermediate level: