Given below are two statements:
Statement I: Both CaCl2.6H2O and MgCl2.8H2O undergo dehydration on heating.
Statement II: BeO is amphoteric whereas the oxides of other elements in the same group are acidic.
In the light of the above statements, choose the correct answer from the options given below: