This is my opinion so don't beat me down too bad. I think if your motive is to question God when times are hard for you to get a true answer from God is ok. Even Jesus questioned God during his crucification. But you do it with an open mind to trust in God's answers for you. I guess you shouldn't question God in a negative or selfish attitude, "why didn't I get this, you knew what I wanted" If that makes sense. I always refer to the site Got Questions and I did find an article about it. I hope this helps.
http://www.gotquestions.org/question-God.html
ITA with ladykaya. There is a huge difference between asking a question seeking enlightment or asking a question with an
AT- TI- TUDE. Think children, cause we are His children, asking
why the family pet died versus
asking why you don't let me stay out until x time like so and so's mom? complete with glares, flaring nostrils, and clenched jaws or fists. Job was getting out of pocket and getting all wound up for a major pity party. Jesus was expressing his humanity asking if there was any other way to redeem man besides the horrors he was about to endure but, he concluded by saying what we must conclude with (and mean it in our hearts), "Not my will but yours be done." It is perfectly fine to ask questions of God and expect to receive answers from him. We must however keep in mind God's ways are far superior to ours. Often times in the beginning, those ways are not appealing to us. Later on we understand and greatly appreciate the
whys? of his ways that were previously unclear. Asking God questions of God is a part of forming the personal relationship with him we should all be striving for. How can we parent someone, be successfully married to someone, or be successful on our jobs if we don't establish dialogues with others including the asking of questions? So go
boldy before him and ask away, just be respectful and remember he is your Father and has the final say.
Just a few passages to ponder...
James 1:5
5If any of you lacks wisdom (or has ??s), he should
ask God, who gives generously to all without finding fault, and it will be given to him.
Heb 4:16
16Let us therefore come
boldly unto the throne of grace, that we may obtain mercy, and find grace to help in time of need (including ???s).
Deut 4:29
29 But if from there you
seek (asking questions is a form of seeking) the LORD your God, you will find him if you look for him with all your heart and with all your soul.
HTH