Theory:

Use of HAVE/HAS in Interrogative/Question sentences
Have/Has + S + V3 + O
 
S - subject: I, we, you, they, he, she, it, Mary, John...
V3 - the Past Participle of the verb (the verb in the third form): written, eaten, worked...
O - object
Have/Has
S
V3
O
Have
I
eaten
two apples?
Have
we
eaten
two apples?
Have
you
eaten
two apples?
Have
they
eaten
two apples?
Has
he
eaten
two apples?
Wh-questions in Present Perfect
Wh-word + Have/Has + S + V3 + O
Wh-word
Have/Has
S
V3
O
When
have
you
gone
to Mumbai?
What
has
Sam
prepared
the speech?
Questions with word EVER
Have/Has + S + ever + V3 + O
Have/Has
S
ever
V3
O
Have
I
ever
eaten
two apples?
Have
we
ever
eaten
two apples?
Have
you
ever
eaten
two apples?
Have
they
ever
eaten
two apples?
Has
he
ever
eaten
two apples?
Has
she
ever
eaten
two apples?
Has
it
ever
eaten
two apples?
Short answers
Yes, S + have/has.
No, S + haven't/hasn't.
Have you done your homework? Yes, I have. / No, I haven't.
We use pronouns instead of nouns and proper names in short answers.
Sam and I
We
Mr James
He
Ms Sara
She
Arjun
He
Sonia
She
My parents
They
Grandma
She
Dad
He
The mobile
It
 
 
How to answer Present Perfect Questions:
  
1)
Question:
Have you been to Hyderabad?
Answer:
Yes, I have. (Positive)
No, I haven't. (Negative)
 
2)
Question:
Has Ram submitted his project to the teacher?
Answer:
Yes, he has. (Positive)
No, he hasn't. (Negative)
 
3)
Question:
Has the new TV-show been released yet?
Answer:
Yes, it has. (Positive)
No, it hasn't (Negative)