A. Here, you should use cosine as you stated. Set up an equation in the format you described: cos(theta) = 4/16. Then, you use something called arccos, which is just cos^(-1). This crosses out the cos on the left side, and you end up with theta = arccos(1/4). Plug this into your calculator to get your answer: 75.52248781.
B. Finding the how high the ladder goes is easy. You just use the Pythagorean Theorem. One leg is 4 feet and the hypotenuse is 16 feet, so the other leg needs to be 4*sqrt(15).