Do you prefer to stay home, or do you want to come with us?
Should I prepare dinner, or are we going to go to the restaurant?
Are the questions correctly written?
Is there a preferred way to write such questions?
English Language & Usage Stack Exchange is a question and answer site for linguists, etymologists, and serious English language enthusiasts. It only takes a minute to sign up.Sign up to join this community
What you're doing here is combining two questions or two independent clauses with a coordinating conjunction, which conjoins two or syntactically identical units. The comma before the conjunction (when dealing with two clauses) is stylistic and optional, though I'd personally recommend it.
Your examples look perfect.