Please choose the correct answer to the question: Which of the following is the major cause of tides?

Answer1: heating of the oceans by the Sun Answer2: gravitational pull of the Moon Answer3: earthquakes on the ocean floor Answer4: changes in wind direction

Answer format: answer1/answer2/answer3/answer4
Answer: answer2