A simple test of embedded C knowledge for pre-screening potential hires.Full description
Descripción: Programación de microcontroladores c ccs
Formulas for actuarial exam c
Descrição completa
Embedded system is a combination of Hardware and Software. Microcontroller like AT89SX, PIC, ARDUINO which places a vital role on this.
Descripción: text on embedded system
Questions for cessna 152 type tech exam
micro controller course note
micro controller course noteDescripción completa
Full description
Full description
Descripción: Application domains have had a considerable impact on the evolution of embedded systems in terms of required methodologies and supporting tools, and resulting technologies. Multimedia and network ...
syllabus of Embedded systemFull description
Full description
micro controller course noteFull description
by Sunny
PaperCut Manual MFDescrição completa
Q: Which of the following is the most portable wa y to declare a C preprocessor constant for the number of seconds in a (non-leap) calendar year? Answers
Q: Which of the following is the most flexible way to declare a C preprocessor macro that takes two arguments and returns the smaller of their two values? Answers
Correct Answer User Answer
#define MIN(A, B) ((A) < (B) ? (A) : (B)) #define MIN(A, B) { if (A < B) A; else B; } #define MIN(A, B) ((A < B) ? A : B) #define MIN(A, B) A < B ? A : B;
Q: Which of the following constructs can be used to create a portable infinite loop in C? Answers
Correct Answer User Answer
while (1) { ... } for (;;) { ... } loop: ... goto loop; All of the above
Q: Which of the following statements accurately describes the intended effect of the declaration int (* a)[10];? Answers
Correct Answer User Answer
An array of ten integers A pointer to an array of ten integers An array of ten pointers to integers An array of ten pointers to functions
Q: Which of the following statements accurately describes a use of C's static keyword? Answers
A variable declared static within the body bod y of a function maintains its value between function invocations A variable declared static outside the body of a function can only be
Correct
User
Answer
Answer
Answers
Correct
User
Answer
Answer
accessed by functions within the same module. Both of the above are accurate Neither of the above are accurate; static is used for function declarations
Q: Which of the following statements accurately describes the meanin g of the declaration int * const x;? Answers
Correct Answer User Answer
x is a constant pointer to an integer x is a pointer to a constant integer x is a constant integer value None of the above; it's an invalid C declaration
Q: Which of the following items should generally be declared using C's volatile keyword? Answers
Correct
User
Answer
Answer
A memory-mapped peripheral status register A global variable used within an interrupt service routine A global variable used by multiple tasks in a multi-threaded application All of the above
Q: Which of the following code snippets can be used to reset the least-significant bit of x? Answers
Correct Answer User Answer
x & 0x01; x & ~0x01; x | ~0x01; x &= ~0x01;
Q: Which ANSI C compilers allow a variable to be declared both volatile and const? Answers
All ANSI C compilers allow this No ANSI C compilers allow this; it is a K&R C holdover Most ANSI C compilers allow this Only the GNU C compiler allows this
Correct Answer User Answer
Q: Which of the following is a correct way to write the value 0xAA55 to physical memory address 0x67A9? Answers
uint16_t * p = (uint16_t *) 0x67A9; p = 0xAA55; uint16_t * p = (uint16_t *) 0xAA55; p = 0x67A9; * (uint16_t * const) (0x67A9) = 0xAA55; * (uint16_t * const) (0xAA55) = 0x67A9;