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
Which of the following is wrong about the description of the interrupt service routine()
A. It can return the computed result to the main function
B. It should be as short as possible to enhance the real-time of the system
C. It should not include complex operations
D. It cannot pass arguments