think on one's feet
think on one's feet {v. phr.}
To think quickly; answer or act without waiting; know what to do or say right away.
A good basketball player can think on his feet.
Our teacher can think on his feet; he always has an answer ready when we ask him questions.
Categories:
Source: A Dictionary of American Idioms