当前位置:凯发k8一触即发首页 » 教师资格问答 » 正文

432 人参与  2022-11-29 06:16:01  分类 :教师资格问答
1. overview

objective questions

1、which of the following is wrong about the description of embedded system ()
    a、it can solve certain problems.
    b、it is no different from general-purpose computers in the nature of technology.
    c、it has more powerful functions than general-purpose computers.
    d、it has strict requirements on volume, power consumption, reliability and cost.

2、which of the following is not an inherent part of an embedded system ()
    a、processor
    b、peripheral circuit
    c、embedded operating system
    d、embedded application software

3、which of the following programming languages has the highest execution efficiency()
    a、assembly language
    b、c language
    c、c language
    d、java language

4、which is the advantage of using embedded operating system()
    a、the system runs faster
    b、the system has higher execution efficiency
    c、application softwares run faster
    d、programmers can focus on problems

5、directly for hardware programming, can't ()
    a、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

2. overview of embedded c programming

objective questions

1、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.

2、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.

3、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.

4、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.

5、which of the following is wrong about the description of the use of c language for "object-oriented programming"()
    a、it can implement better program structure.
    b、it can effectively organize the display of chinese characters.
    c、it can implement the function of some 'class'.
    d、it is less efficient in menu design.

3. arm c program optimization

objective questions

1、which of the following is wrong about the description of the program optimization of arm c()
    a、it can analyze the running time of the program.
    b、it can guide assembly program design.
    c、it can analyze whether the program is efficient.
    d、it can guide c programming design.

2、which of the following is correct about the description of the data type is ()
    a、shorter data types save more storage space.
    b、try to use character variables when passing parameters.
    c、it is most efficient to use integer variables.
    d、try to use a short data type in the loop to speed up execution.

3、which of the following is correct about the description of loop optimization is ()
    a、change the loop variable by using the plus count.
    b、change the loop variable by using the minus count.
    c、'while' should be used when the number of loops is uncertain.
    d、loop unrolling can improve the quality of program.

4、which of the following is wrong about the description of pointer aliasing()
    a、try to avoid using pointers.
    b、using pointers may reduce program efficiency.
    c、the compiler cannot recognize the pointer aliasing.
    d、when using bit fields, we should pay attention to pointer aliasing.

5、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.

4. the linux operating system

objective questions

1、the characteristics of linux do not include()
    a、micro kernel.
    b、meet the posix standard.
    c、it can run on the server.
    d、it can run on embedded devices.

2、which of the following is not a feature of 'shell' ()
    a、it's a low-level interface to the operating system.
    b、you can type shell commands from the console.
    c、you can write shell scripts.
    d、linux supports multiple 'shell'.

3、which of the following 'shell' environment variables identifies the system executable file path ()
    a、home
    b、path
    c、term
    d、pwd

4、which of the following paths holds all the device files of the system ()
    a、bin
    b、dev
    c、lib
    d、root

5、which of the following commands is used to view the current process of the system ()
    a、rm
    b、touch
    c、mkdir
    d、ps

6、which of the following commands is used to configure the ip address of network card()
    a、ping
    b、telnet
    c、ifconfig
    d、ftp

5. linux c programming toolchain and makefile

section 5-1 objective questions

1、what are the features of the cross compiler()
    a、the compiler runs on the host machine, and compiler results also run on the host machine.
    b、the compiler runs on the target machine, and compiler results also run on the target machine.
    c、the compiler runs on the host machine, and compiler results run on the target machine.
    d、the compiler runs on the target machine, and compiler results run on the host machine.

2、which of the following is not included in the gnu toolchain()
    a、gcc
    b、gdb
    c、ld
    d、ide

3、what is the vi forced save exit command()
    a、q
    b、q!
    c、wq
    d、x

4、when compiling a program with gcc, only the preprocessing phase is carried out, which of the following options()
    a、-e
    b、-s
    c、-c
    d、-o

5、when compiling a program with gcc, which of the following opens all warnings()
    a、-w
    b、-o
    c、-g
    d、-wall

6、which of the following abbreviations is used to implement the breakpoint function of gdb()
    a、n
    b、i
    c、b
    d、l

section 5-2 objective questions

1、what is the basis for the 'make' command to determine whether a file should be compiled()
    a、file generation time
    b、file generation size
    c、file type
    d、file attribute

2、which of the following is not a target type of 'makefile'()
    a、ultimate target
    b、intermediate target
    c、label
    d、dependency file

3、which of the following is wrong about the execution process of 'make'()
    a、the first target of 'makefile' is the ultimate target.
    b、each target is found according to the stack principle.
    c、if the dependency file does not exist, exit directly.
    d、the label will be associated first.

4、which of the following is not a 'makefile' variable type()
    a、environment variable
    b、automatic variable
    c、recursively expanded variable
    d、symbolic variable

5、which of the following is correct()
    a、'makefile' doesn't support nesting.
    b、'makefile' doesn't support the generation of multiple executable programs at the same time.
    c、'makefile' doesn't need to explicitly state all the rules.
    d、'makefile' execution error will exit.

6. construction of embedded software platform

objective questions

1、which of the following is not included in the embedded software platform based on operating system()
    a、bootloader
    b、operating system
    c、file system
    d、graphics system

2、which of the following is not a feature of busybox()
    a、it compresses a large number of programs into a single file.
    b、it identifies each command with the command line parameter 'argv [1]'.
    c、it establishes a symbolic link for each command.
    d、it joins the common parts of multiple commands and keeps only one copy.

3、which of the following is correct about the description of the features of bootloader()
    a、it works all the time in the system until it power-down.
    b、it runs in two phases, both of which are designed in assembly language.
    c、its main function is to copy the operating system kernel into memory.
    d、it has user interaction function.

4、which of the following is correct about the description of embedded applications()
    a、it has to be cross compiled.
    b、it can be cross compiled.
    c、it must be compiled locally.
    d、it can be compiled locally.

5、which of the following ways is not used for downloading and debugging programs()
    a、tftp
    b、ftp
    c、http
    d、nfs

7. file directory and memory

objective questions

1、the function of the umask() system call is()
    a、sets the mask for the permissions bit that the newly created file or directory should be closed.
    b、sets the mask for the permissions bit that the newly created file or directory should open.
    c、sets the permissions bit for the newly created file or directory.
    d、clear the permissions bit for the newly created file or directory.

2、which of the following is wrong about the description of system calls:()
    a、system call is the underlying programming interface provided by the operating system to the user.
    b、system calls exist in kernel space.
    c、system calls are implemented by calling library functions.
    d、improper use of system call does great harm to the system.

3、which of the following is correct about the description of fopen() and open() ()
    a、the former is even more subterranean.
    b、the former returns the file descriptor.
    c、the latter is a system call.
    d、the latter returns a pointer of type file*.

4、which of the following functions checks whether the end of the file is accessed()
    a、fopen
    b、feof
    c、fread
    d、fseek

5、which of the following functions functions as a new directory()
    a、chdir
    b、mkdir
    c、rmdir
    d、getcwd

6、when the mmap() function is called, which of the following parameters should be set to null if the memory-mapped address is not known()
    a、start
    b、length
    c、prot
    d、offset

8. processes and threads

objective questions

1、which of the following is not a feature of the fork() system call()
    a、a new process is created.
    b、call once and return twice.
    c、the child process is a copy of the parent process, which is identical.
    d、returns 0 to the child process.

2、which of the following is wrong about the description of the operation of the process()
    a、fork () is used to create a new process that is almost a full copy of the current process.
    b、exec() function can replace a running program in a process with another program.
    c、when the function execve() is executed, the code portion of the current process is replaced by a new program.
    d、the exec family of functions, once executed successfully, does not return its caller.

3、which of the following is wrong about the description of the waitpid() function()
    a、waitpid () temporarily stops the execution of the current process until a signal arrives or the child process finishes.
    b、if the child process has ended when the waitpid is called, the waitpid immediately returns the value of the child process's end state.
    c、the end status value of the child process is returned by the parameter status.
    d、returns the child process number (pid) on success and 0 if an error occurs.

4、which of the following characteristics does a thread have()
    a、each process contains at least one thread.
    b、only when all threads in the process have finished can the process finish.
    c、the new thread has a separate stack where global and static variables can be shared.
    d、multithreaded programs are more efficient than single-threaded programs.

5、which of the following is not part of the basic thread control function()
    a、pthread_creat()
    b、pthread_exit()
    c、pthread_join()
    d、pthread_start()

6、which of the following functions realizes the semaphore plus 1()
    a、sem_init()
    b、sem_wait()
    c、sem_post()
    d、sem_destory()

7、semaphore characteristics do not include which of the following()
    a、realize the synchronization operation of two threads.
    b、it works atomically.
    c、the semaphore has a value of 0 or 1.
    d、used to protect critical areas.

9. signals

objective questions

1、which of the following is wrong about the description of the signal()
    a、a signal is an event produced by a unix/linux system in response to certain conditions.
    b、signals can be generated, captured, responded to, and ignored.
    c、the signal is generated automatically by the system.
    d、use the kill command to send a signal.

2、using the ctrl c key on the keyboard, which of the following signals can be sent to the front desk process()
    a、sigabort
    b、sigstop
    c、sigtstp
    d、sigint

3、using the ctrl \ key on the keyboard, which of the following signals can be sent to the front desk process()
    a、sigalrm
    b、sigkill
    c、sigquit
    d、sigterm

4、possible reasons for the failure of the kill call do not include()
    a、the target process is in kernel space.
    b、the given signal is invalid.
    c、insufficient send process permissions.
    d、the target process does not exist.

5、which of the following is wrong about the description of the signal function()
    a、this function takes two arguments.
    b、this function can process the signal.
    c、this function associates a particular signal with the processing function.
    d、function returns the function pointer that was previously used to process the signal.

6、which of the following is wrong about the description of the sigaction function()
    a、the function is the same as the signal function.
    b、this function associates a particular signal with the processing function.
    c、the signal function options can be set to give resethand or restart.
    d、this function specifies a set of signals that will be blocked and will not be passed to the process.

10. interprocess communication

objective questions

1、which of the following is not ipc mode()
    a、semaphore
    b、signal
    c、shared memory
    d、message queue

2、which of the following is correct about the description of the pipe()
    a、pipe is full duplex work.
    b、pipe is simplex work.
    c、nameless pipes can communicate between unrelated processes.
    d、a named pipe exists in the file system.

3、which of the following is wrong about the description of the semaphore()
    a、it is divided into binary semaphore and universal semaphore.
    b、semaphores can be replaced by ordinary variables.
    c、semaphores are used to protect critical areas.
    d、semaphores belong to interprocess communication.

4、which of the following functions links the shared memory to the process address space()
    a、shmat()
    b、shmdt()
    c、shmctl
    d、shmget

5、which of the following functions can delete the message queue()
    a、msgget()
    b、msgsnd()
    c、msgrcv()
    d、msgctl

11. sockets

objective questions

1、which of the following is correct about the description of the socket()
    a、sockets belong to the inter-process communication mode.
    b、sockets are used in the same way as pipes.
    c、sockets can only be used between different machines on the network.
    d、sockets can only be used on unix/linux hosts.

2、which of the following functions is not a server-side socket function()
    a、bind()
    b、listen()
    c、accetp()
    d、connect()

3、which of the following uniquely identifies a network socket()
    a、the file name
    b、the ip address
    c、the port number
    d、ip address and port number

4、the ip address of the loopback network is()
    a、192.168.0.0
    b、192.168.0.1
    c、127.0.0.0
    d、127.0.0.1

5、on the accept() system call, the error is()
    a、the server through it waits for the client to make a connection to the socket.
    b、the accept function returns only when a client tries to connect to a socket specified by the socket argument, otherwise it will remain blocked.
    c、the accept function creates a new socket to communicate with the customer.
    d、accept returns a descriptor for the new socket, which is of a different type than the server listening socket.

12. module and driver and the example of driver

section 12-1 objective questions

1、which of the following is correct about the description of the kernel module()
    a、a module is a program that can be executed independently.
    b、once a module is linked to the kernel, it is fully equivalent to the original code in the kernel.
    c、once a module is loaded into the kernel, it cannot be unloaded.
    d、the module runs in user space.

2、which of the following commands inserts a module into the kernel()
    a、insmod
    b、lsmod
    c、rmmod
    d、depmod

3、which of the following is wrong about the description of the function of the module()
    a、you can insert a module into the kernel with parameters.
    b、kernel functionality can be extended through modules.
    c、linux kernel modules must comply with the gpl license.
    d、after the module is inserted into the kernel, symbols can be exported for use by other modules.

4、which of the following is wrong about the description of linux driver()
    a、the driver must be inserted into the system using dynamic module loading.
    b、the driver belongs to the kernel code.
    c、a driver is a collection of functions and data structures.
    d、the driver is used to control the hardware device.

5、linux devices do not include which of the following()
    a、character device
    b、block device
    c、network device
    d、output device

6、what is the number of bits of the linux system's major device number in 2.6 and later versions()
    a、8
    b、12
    c、24
    d、32

7、what is the number of bits of the linux system's minor device number in 2.6 and later versions()
    a、8
    b、16
    c、20
    d、24

8、the main job of designing linux device drivers is to design()
    a、function pointer
    b、function
    c、the function corresponding to the function pointer.
    d、the function pointer corresponding to the function.

section 12-2 objective questions

1、what does the io_p2v() function do()
    a、physical address to virtual address.
    b、virtual address to physical address.
    c、physical address registration.
    d、register registration.

2、what does the copy_from_user() function do()
    a、copy data from kernel space to user space.
    b、copying data from user space to kernel space.
    c、copying data between drivers.
    d、copying data between applications.

3、which of the following is wrong about the description of linux interrupt drivers()
    a、the top half of the interrupt program is responsible for generating small tasks.
    b、the body of the interrupt service program is executed by the operating system schedule.
    c、the interruption service should be completed quickly to ensure quick response of the system.
    d、interrupters can only respond to external events.

final exam

final exam in spring 2020

1、which of the following is wrong about the description of embedded system()
    a、embedded system is generally applied in the industrial field, it is difficult to see in daily life.
    b、the technology adopted by embedded system relies on computer technology.
    c、the embedded system has strict requirements on volume, power consumption and reliability.
    d、the embedded system is a special computer system.

2、which of the following statements is correct for a single-tasking embedded system()
    a、single-tasking embedded system is more complex than multitasking system.
    b、the initial initialization of the system generally uses assembly language.
    c、the initial initialization of the system generally uses c language.
    d、single-tasking embedded system can solve any complex application problems.

3、which of the following is wrong about the description of c language()
    a、the development efficiency of c language is higher than that of assembly language.
    b、c language program runs faster than assembly language.
    c、c language can access memory address directly.
    d、c language supports pointers.

4、which of the following statements is wrong in arm c programming()
    a、the c program can be optimized according to the characteristics of arm architecture.
    b、the c program can be optimized according to the characteristics of compiler.
    c、the arm c program cannot be optimized.
    d、the variable type, loop and other features of arm c can be optimized.

5、for a 32-bit embedded processor, in order to improve the execution efficiency of c program as much as possible, how many bits should be set for variables, parameters and function return values()
    a、1-bit
    b、8-bit
    c、16-bit
    d、32-bit

6、which of the following is wrong about the description of the linux operating system()
    a、linux operating system is widely used.
    b、linux operating system can be ported to many architecture computers.
    c、linux operating system can only run on a pc.
    d、linux implements many system management functions through the ‘shell’ command.

7、which of the following linux 'shell' commands can implement directory switching()
    a、ls
    b、cat
    c、cd
    d、pwd

8、which of the following is wrong about the description of the vi()
    a、vi is a powerful editor.
    b、vi has command mode and input mode.
    c、vi is only suitable for editing text files, not for editing source programs.
    d、vi supports very rich commands.

9、which of the following is correct about the description of the gcc()
    a、gcc is a debugger.
    b、gcc is a compiler.
    c、gcc is a connector.
    d、gcc is a version control tool.

10、which of the following is wrong about the description of the gdb()
    a、gdb is a powerful debugger.
    b、gdb supports a variety of debugging commands.
    c、gdb works in a way of the command line.
    d、gdb works in a way of the graphical interface.

11、the 'make' program will look for the 'makefile' from the current directory, parse its contents, and complete the automatic compilation of the project. which of the following statements is wrong()
    a、makefile is an effective software engineering tool.
    b、the compilation efficiency of the project can be greatly improved by writing makefile.
    c、every c program must use makefile to compile.
    d、makefile supports many syntactic features.

12、which of the following functions can open a directory file()
    a、mkdir()
    b、rmdir()
    c、opendir()
    d、closedir()

13、which of the following is correct about the description of the file operation()
    a、it only has read access to files.
    b、it only has write access to files.
    c、it only has append access to files.
    d、it has read, write and append access to files.

14、which of the following is correct about the description of the process()
    a、each program generates a process when it executes.
    b、there is no interprocess communication between different processes.
    c、the father process id is the same as the child process id.
    d、the concepts of process and thread are exactly the same.

15、which of the following is wrong about the description of the thread programming()
    a、the thread overhead is greater than the process overhead.
    b、once the original thread ends, all threads in the process end.
    c、reentrancy should be carefully considered in multithreaded programming.
    d、thread resources should be properly recovered after the thread ends.

16、what happens when you press ‘ctrl c’ on the keyboard()
    a、wake up the foreground process.
    b、terminate the foreground process.
    c、terminate the background process.
    d、nothing will happen.

17、which of the following is not a signal set processing function()
    a、sigaddset()
    b、sigemptyset()
    c、sigfillset()
    d、signal()

18、which of the following is correct about the description of shared memory()
    a、shared memory doesn’t belong to interprocess communication mechanism.
    b、shared memory must be connected to the process address space before it can be used.
    c、the same block of shared memory can’t be used by unrelated processes.
    d、shared memory can only be used by parent-child processes with inheritance relationships.

19、which of the following is wrong about the description of message queue()
    a、message queuing belongs to an interprocess communication mechanism.
    b、different processes can pass message through message queues.
    c、the message queue can contain countless messages.
    d、there is a maximum limit to the length of each message in the message queue.

20、which of the following is wrong about the description of socket mechanism()
    a、the computer in the network can use socket communication.
    b、socket communication can be used between different processes of a computer.
    c、client and server are not distinguished in socket communication.
    d、socket mechanism is implemented by a series of functions.

21、what is used to identify devices in the kernel()
    a、device name.
    b、device aliases.
    c、device number.
    d、none of the above is correct.

22、which of the following is correct about the description of driver()
    a、the driver must be inserted into the linux kernel in a module way.
    b、the driver must be compiled directly into the kernel.
    c、the driver can help users manage hardware.
    d、there is no difference between drivers and applications.

23、which of the following commands lists the module list in the system()
    a、insmod
    b、rmmod
    c、lsmod
    d、depmod

24、which of the following is wrong about the description of device()
    a、the device has the major device number.
    b、the device has the minor device number.
    c、the major device number and the minor device number jointly determine a device.
    d、the concept of major equipment number and minor equipment number is the same.

25、which of the following is not a feature of bootloader()
    a、bootloader runs when the system is just started.
    b、bootloader can do system initialization.
    c、bootloader includes all functions of the application.
    d、bootloader is responsible for copying the operating system kernel into memory.

26、the development efficiency and operation efficiency of c language are higher than that of assembly language, so c language is the most widely applied in embedded system. assembly language is no longer necessary to exist.

27、both the internal code and chinese font are used for the display of chinese characters. they are exactly the same.

28、in the embedded system, the screen can be regarded as a "window", and each element in the screen can be regarded as a control in the "window". when an external event occurs, the event is wrapped as a message, and the message is passed to the corresponding control through the callback function of the window, and then the message processing function of the control is activated.

29、due to the compiler is unable to determine the direction of the pointer when the program is running, the pointer has the so-called "alias" problem, which brings convenience to programming.

30、c language is used to design the loop. the efficiency of loop variable is the same whether it is plus count or minus count.

31、the pstree command has the same function as the top command, which can dynamically display the process tree of the system and constantly refresh according to the system changes.

32、in linux system, the ping command can be used to detect network connectivity.

33、the full name of gcc is gnu compiler collection, which is the compiler set of gnu.

34、the feature of cross compiler is that the compiler itself runs on a host machine platform of some architecture, but the executable file that compiled output runs on a target machine platform of different architectures.

35、the makefile determines which file in the project needs to be recompiled and which project doesn’t need to be recompiled according to the file size.

36、there should generally be a rule in the makefile to empty the target file, usually called clean.

37、busybox tool can compress the whole software part (including bootloader, operating system kernel, common application software, etc.) of the embedded system together, and has a very small file size, so it is widely used in the embedded system.

38、the function of bootloader is to copy the operating system kernel from ram to flash memory, and then jump to the beginning of the flash memory kernel to start running. the running speed of flash is faster than that of ram.

39、a file can be opened in library function mode and system call mode, both of which are used in the same way.

40、in linux system, mmap() function can be used for memory mapping, but the user must specify a fixed memory address as the head address of the mapping file, so the user needs to know where the memory is free.

41、thread programming needs to pay attention to time sequence control to avoid deadlock.

42、the child process is a complete copy of the parent process, which is exactly the same.

43、linux processes can communicate with each other through semaphores.

44、the sigaction is a more robust signal interface function than signal.

45、linux can use the module mechanism to expand the core functions, so both linux system and windows system belong to the microkernel mechanism.

46、in the linux driver, the programmer must implement the functions corresponding to all pointers in the file operations struct.

47、the file struct represents an open file in which the private_data member has no clear functional definition, so it's actually completely useless.

48、in the driver, it is often necessary to copy information between kernel space and user space.

49、stm32 series processor is based on the arm cortex core processor.

50、proteus can simulate a large number of embedded processors, so embedded systems no longer need to make actual hardware circuit boards.

<< 上一篇

备案号: 凯发娱乐官网的版权所有 凯发k8一触即发 copyright © 2012-2022 凯发k8一触即发-凯发娱乐官网 all rights reserved. sitemap

网站地图