A ball of mass `m` is thrown vertically upwards. Another ball of same mass is thrown at an angle `theta` to the horizontal. If the time if flights for both is same, the ratio of maximum height attained by them
A. `1 : 2`
B. `1 : sin^(2)theta`
C. `1 : 1`
D. `cos^(2) theta : 1`