题目内容

Which of the following is wrong about the description of the struct()

A. In a struct, short members are defined first and long members are defined later
B. Struct members should be boundary aligned as much as possible
C. Array elements should be placed at the end of the struct
D. __packet keyword can improve the access speed of the struct

查看答案
更多问题

When using C language to simulate object-oriented features, the correct description is()

A. Its structure is exactly the same as the function of the class
B. Function pointers are used to implement attribute members of a class
C. Inheritance is implemented through struct inclusion
D. A structure can contain member functions

Which of the following is wrong about the description of the module()

A. The module division should conform to the principle of high cohesion and low coupling
B. In C language, the source file and the corresponding header file form a module
C. Global variables shared by several modules can be defined in the header files shared by these files
D. In the embedded system, each hardware device corresponds to a module

Which of the following is correct about the description of the interrupt model of embedded system without operating system()

A. Complete the corresponding transaction in the interrupt program
B. Only interrupts are registered in an interrupt program
C. When an interrupt occurs, the interrupt service routine registers the interrupt type in the stack
D. The main function executes the actual interrupt task through infinite loop, and does not distinguish the interrupt priority

Directly for hardware programming, can’t()

Access processor’s registers
B. Control the working mode and process of the hardware
C. Using the scheduling mechanism of operating system
D. Read-write memory

答案查题题库