Do you mean an example of a question using a direct object? Here is one: "Will she buy it?" In this case "it" is the direct object. For indirect object you could ask: "Who will send me the fax?" in this case "me" is the indirect object and "fax" is the direct object.

Direct questions: Who is the person over there? What time is it? Will she buy it? Mike said, "Did you see Tom yesterday?"Mike asked, "Have you been to Taiwan?"

Indirect questions: Tell me who the person over there is. Do you know who the person over there is? I don't know what time it is. Do you know what time it is?Tell me if she will buy it. Mike asked whether I had seen Tom the day before. Mike asked whether I had been to Taiwan.