Apple Interview Question for Software Engineers


Country: United States
Interview Type: In-Person




Comment hidden because of low score. Click to expand.
0
of 0 vote

The example of event driven programming in c is calculator using a switch case.

- Saj August 09, 2017 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

the example of event driven programming in c is calculator using a switch case.

- sajid.miz1994 August 09, 2017 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I dont think so .. The thing that you are saying sound more like parsing the string that will be sent to the online calculator . If not can you explain it with code.

- anaghakr89 August 10, 2017 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I think he meant, a calculator that will react on key presses, so pressing 1 is an event etc. you can even build a finite automaton around it that will work as a calculator, so it looks pretty "eventish" to me

- Chris August 10, 2017 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

We can give any number of examples. Basically there should be a dispatcher which gives events to the event handler. The event handler is a function with multiple cases inside switch. If the event handler has to run(monitor) continuously, then it should be within a while always loop. Say you want to handle the bluetooth events in the lower layers, say you want to handle elevator control, say you want to handle the washing machine instructions., etc

- ranjithmkumar1992@gmail.com July 17, 2018 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More