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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
AndyAinscowFreelance 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

RobertSystem 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 SaundersDirector 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, MVPOwnerCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.