Final answer:
The oxidation number for atoms from Group 1A in compounds is +1, and for those from Group 2A is +2, as these elements tend to form cations by losing one or two electrons respectively when they bond.
Step-by-step explanation:
The oxidation number of an atom from Group 1A or Group 2A in compounds is +1 for Group 1A and +2 for Group 2A. This is because these groups contain alkali metals and alkaline earth metals respectively, which typically lose one and two electrons to form cations when they form compounds. For instance, in NaCl, each sodium atom has an oxidation number of +1, and in CaCl2, each calcium atom has an oxidation number of +2.