1) Is it possible to attack target by type? Eg. I want my fighter squadron to attack 3 bomber squadrons. How do I select the targets so that the figher squadron will attack all the bomber squadrons without Shift-Right-Clicking all the different bombers squadrons?
Bombers are the preferred targets for fighters. You don't need to worry if this is your preferred target. Otherwise, shift-click is your only solution.
2) When the units are displayed in stacks of 20 on the left panel, and I do a right click on it, does my unit attack all the 20 units in the stack or just one unit?
I believe they will focus on one unit in the target stack.