Use question marks to close sentences that ask direct questions.
How is the human mind like a computer, and how is it different?
—Kathleen Stassen Berger and Ross A. Thompson, The Developing Person through Childhood and Adolescence
Question marks do not close indirect questions, which report rather than ask questions.