Interview question: What happens when a button is clicked?

"What happens a button is clicked" was asked of me in an interview today. It was a .Net/ASP.Net interview.

I said something like the event click is called and then maybe DB is called to get information, etc. The guy didn't like this answer.

How would you guys answer it? Suppose it's Web Froms.
LVL 8
CamilliaAsked:
Who is Participating?
 
AndyAinscowConnect With a Mentor Freelance programmer / ConsultantCommented:
Sounds like whatever you said would be wrong (unless you had been talking about jquery in the previous question).  Sometimes an 'aggressive' attitude is used to see how the interviewee reacts to stress.
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
Did the interviewer give any reasons why your answer wasn't liked.  (Maybe he wanted more details?)
0
 
CamilliaAuthor Commented:
He didn't. I went on saying if click is done with jQuery, "post" is done.

How would you answer that?

(Sometimes, regardless of the answer, interviewers aren't happy with the answer). I turned down more interviews with them. This was my 3rd one with this team. I had 4 with another team. I had enough interviews with them.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
RobertConnect With a Mentor System AdminCommented:
I would have requested he put the question into context as the answer would vary depending on platform and or other factors.
Honestly it sounds like it was someone just trying to do the "trip you up strategy" attempting to get you to say I don't know or need more information.
0
 
CamilliaAuthor Commented:
I think so too. Glad I canceled my next interview with them. This is my 7th interview with this company! Moving on and accepted an offer.
0
 
Dustin SaundersConnect With a Mentor Director of OperationsCommented:
That's a vague and open to interpretation question...

What happens when a button is clicked?  Whatever you code it to do.  When I click this button it rounds off the decimals in banking transactions and deposits them into my bank account, like in Superman 3.
0
 
CamilliaAuthor Commented:
>> Whatever you code it to do

That's exactly what I wanted to say! but I thought it might come across as an smart a** answer :)
1
 
Dustin SaundersDirector of OperationsCommented:
I guess my advice is to remember that there's a percieved power position for interviewers thats somewhat artificial.  Interviewers sometimes ask bad questions (I have before for sure).  Don't be afraid to push back on a question you feel is vague or incomplete--  "I suppose there are a lot of possible answers for that question, could you give me a scenario or elaborate?"

Sometimes, knowing to ask a question to clarify indicates a better understanding than an attempted answer.

I'd also note that you are interviewing the company just as much as they are interviewing you.  If the interview is vague and the process is convoluted (7 interviews?  How is this efficient for anyone?) imagine what working for them will be like.
0
 
CamilliaAuthor Commented:
I'd also note that you are interviewing the company just as much as they are interviewing you.  If the interview is vague and the process is convoluted (7 interviews?  How is this efficient for anyone?) imagine what working for them will be like.

I emailed their HR sharing my concerns with their interview process. They thanked me for it with some explanation. It's usually a sign that they're difficult to work with.
0
 
David Johnson, CD, MVPConnect With a Mentor OwnerCommented:
I equate programming as plumbing.. I'm given the front end and the backend and now code them to work together.   What do you mean you didn't want the toilet in the kitchen?

Programming deals in exact requirements and are only given vague guidelines then they get what they get and maybe not what their ideas were since you forgot to polish up your crystal ball.
2
 
Dustin SaundersDirector of OperationsCommented:
@David
I love that analogy!
0
 
CamilliaAuthor Commented:
@David,

That's great. Thanks
0
 
Dustin SaundersDirector of OperationsCommented:
Not to derail your thread but I think you received appropriate feedback and it made me think of this:

A programmer is going to the grocery store and his wife tells him, "Buy a gallon of milk, and if there are eggs, buy a dozen." So the programmer goes, buys everything, and drives back to his house. Upon arrival, his wife angrily asks him, "Why did you get 13 gallons of milk?" The programmer says, "There were eggs!"
3
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.