C code optimization Projects you've done before with Microcontrollers draw schematic diagram for voting system using SPI protocol ADC, UART, SPI
Embedded Engineer Interview Questions
6,289 embedded engineer interview questions shared by candidates
Write a code that would add the number of ones in a byte.
dividing x by 7 using simple operations (+, -, <<, >>, ...) and with no loops
Using C code write a routine to find a 32 bit frame start sequence in a raw byte stream buffer.
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.
Viewing 81 - 90 interview questions