Final answer:
The grammatically correct sentence is D) He studied hard; she studied harder.
Step-by-step explanation:
The grammatically correct sentence among the options is D) He studied hard; she studied harder.
Option A is incorrect because it lacks a conjunction or a semicolon to join the two independent clauses. Option B correctly uses the conjunction 'but' to show contrast between the two actions. Option C is incorrect because it also lacks a conjunction or semicolon to connect the two clauses.
Therefore, the correct answer is D) He studied hard; she studied harder.
Learn more about Grammatically correct sentence