For a moderate climb, I prefer to sit up, hands on tops, lift toes to keep heels level, and mash in my low gear (39-25).
If it gets steep, 15% or so, I'll stand and continue mashing up.
You can condition your quads by riding extended time standing in your highest gear on flat, BTW.