Embedded Interview Questions

6,858 embedded interview questions shared by candidates

Describe volatile, const, static keywords. How do you share data between interrupt handler and main thread if you do not have an OS with your embedded controller? How do you optimize linear piecewise function in terms of speed?
avatar

Embedded Fw (Firmware) Engineer

Interviewed at Nest

3.6
Aug 4, 2015

Describe volatile, const, static keywords. How do you share data between interrupt handler and main thread if you do not have an OS with your embedded controller? How do you optimize linear piecewise function in terms of speed?

/** * Represents a grid of hexagonal tiles, kind of * like a honeycomb. * ___ ___ ___ * / 0 \___/ 6 \___/12 \___ * \___/ 3 \___/ 9 \___/15 \ * / 1 \___/ 7 \___/13 \___/ * \___/ 4 \___/10 \___/16 \ * / 2 \___/ 8 \___/14 \___/ * \___/ 5 \___/11 \___/17 \ * \___/ \___/ \___/ * * The above example is of height 3 and width 6, * but other sizes can be specified. * * It takes into account six cardinal directions. * * N * NW ___ NE * / \ * \___/ * SW SE * S */ public static class HexGrid { public static int EMPTY = -1; public HexGrid(int height, int width) { // TODO: Implement me! } /** * Returns the list of neighbors for a given tile in clockwise order, starting with N. * Any empty tiles will be represented as {@link #EMPTY}. * * @param index of the tile of interest * @return tiles that are adjacent, clockwise starting with N. */ public List<Integer> getTileNeighbors(int index) { // TODO: Implement me! return null; } } }
avatar

Android Embedded Engineer

Interviewed at Block

3.3
Sep 2, 2016

/** * Represents a grid of hexagonal tiles, kind of * like a honeycomb. * ___ ___ ___ * / 0 \___/ 6 \___/12 \___ * \___/ 3 \___/ 9 \___/15 \ * / 1 \___/ 7 \___/13 \___/ * \___/ 4 \___/10 \___/16 \ * / 2 \___/ 8 \___/14 \___/ * \___/ 5 \___/11 \___/17 \ * \___/ \___/ \___/ * * The above example is of height 3 and width 6, * but other sizes can be specified. * * It takes into account six cardinal directions. * * N * NW ___ NE * / \ * \___/ * SW SE * S */ public static class HexGrid { public static int EMPTY = -1; public HexGrid(int height, int width) { // TODO: Implement me! } /** * Returns the list of neighbors for a given tile in clockwise order, starting with N. * Any empty tiles will be represented as {@link #EMPTY}. * * @param index of the tile of interest * @return tiles that are adjacent, clockwise starting with N. */ public List<Integer> getTileNeighbors(int index) { // TODO: Implement me! return null; } } }

Viewing 101 - 110 interview questions

Glassdoor has 6,858 interview questions and reports from Embedded interviews. Prepare for your interview. Get hired. Love your job.