The correct option is A 7!
It is given that four persons have 10 hats to wear.
It can also be seen as there are 10 different things out of which we need 4 of them and do the arrangements of those things.
And, we know that number of ways of arranging n different things taken r at a time is nothing but nPr
So, according to question number of ways of wearing hats is 10P4
⇒10P4=10!(10−4)!=10×9×8×7×6!6!
⇒10P4=10×9×8×7=5040.