Step 1: Understanding the Concept
The greenhouse effect warms the earth.
Step 2: Statement I
Earth's surface re-emits absorbed heat as infrared radiation, so it is correct.
Step 3: Statement II
Gases like carbon dioxide and methane trap infrared radiation and cause reheating, so it is correct.
Step 4: Conclusion
Both are correct.
Final Answer:
Both statements are correct.
\[ \boxed{\text{(A) }\text{Both statement I and statement II are correct.}} \]