This test is designed to assess a candidate's knowledge of technology, embedded C++, and the basics of programming. It will include questions on topics such as memory management, data structures, algorithms, and debugging. The test will also cover basic concepts such as variables, functions, classes, and control flow. Candidates should be able to demonstrate their understanding of these topics in order to pass the test.
Example Question:
class led_base
{
public:
virtual void toggle() = 0; // Abstract.
};
class led_port : public led_base
{
public:
virtual void toggle()
{
// ...
}
};
void led_toggle(led_base* led)
{
led->toggle();
}
void do_toggle()
{
led_toggle(&led0);
}
void do_toggle ()
{
led_toggle(static_cast<led_base*>(&led0));
}