dividing x by 7 using simple operations (+, -, <<, >>, ...) and with no loops
Embedded Design Engineer Interview Questions
6,858 embedded design engineer interview questions shared by candidates
How do you share data between processes in a single processor system?
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?
Write a function that will return x*7 without using multiplication?
/** * 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; } } }
Q: Do you use an iPhone or Android?
The most unexpected question is that if a read-only variable which is defined by 'constant' will be allocated with the memory when compiling.
What kind of data structure would you use to store data from a serial receive line?
Describe the two different uses of the "volatile" keywork in C.
C programming, pointers , logical puzzles
Viewing 101 - 110 interview questions