Embedded 版 (精华区)

发信人: ambercctv (雪人), 信区: Embedded
标  题: 嵌入式linux开发试题
发信站: 哈工大紫丁香 (2004年01月10日11:12:18 星期六), 站内信件

1.Linux的启动引导大致分为以下几个阶段,请指明这几个阶段的先后顺序(单选题)
     a. Initialize memory and hardware
     b. Mount root filesystem
     c. Lanuch kernel
  d. Extract and decompress the kernel image
     e. Run /sbin/init
     f. Initialize device drivers
  (A)dcafbe   (B)defacb  (C)dafbec  (D)dacfbe

2.(多选题)
A.To change the final stages of an embedded Linux startup process you can 
replace init entirely, with an application of your own design. 
B.You can even experiment a bit, by providing the names of programs like 
/bin/sh in the kernel's init= command line parameter of a Linux workstation. 
The kernel will simply run the specified program at the end of the boot 
process, instead of init.
C.In essence, /etc/rc.d will define the runlevels for your system, and the 
files in /etc/inittab will define which services run on each runlevel.
D.In embedded Linux systems, the flexibility of System V init is overkill 
since such systems are rarely run as multiuser systems

3.对于下面的inittab 文件,哪个解释是错的(单选题)
::sysinit:/etc/init.d/rcS
::respawn:/sbin/getty 115200 ttyS0
::respawn:/control-module/bin/init
::restart:/sbin/init
A. Sets /etc/init.d/rcS as the system initialization file.
B. Starts a initialization on the serial port at 115200 bps.
C. Starts the control module's custom software initialization script.
D. Sets /sbin/init as the program to execute if init restarts.

4.  What command do you use to load a module into the kernel? (单选题)
A. loadmod   B. modload  C. modprep  D. modins  E. modprobe

5. 如果需要启动内核模块化支持,我们需要启动选项:(多选题)
A. enable loadable module support 
B. set version information on all symbols for modules 
C. kernel module loader 
D. mttr(memory type range register) support
 
6. 如果在配置内核时,我们选择启用模块支持,则一般说来我们需要运行下面的哪些以在
系统中编译安装合适的模块。(多选题)
    A. make clean 
    B. make modules 
    C. make modules_install 
    D. make bzImage

7.(单选题)
You have just loaded a new version of the kernel source and installed it into 
/usr/src/kernelnew. In /usr/src/kernelold are the sources of your old kernel. 
Before configuring the new kernel you want to get as much configuration 
information as possible from the old kernel to the new one. What file will 
you copy from kernelold to kernelnew to archieve this?    
A. Makefile  
B. kernel.dat  
C. kernel.conf  
D. config  
E. kernelconf

8. Linux系统中的设备的类型包括:(多选题)
A. 块设备  
B. 缓冲设备
C. 字符设备 
D. 流设备 

9. 如果我们需要在Linux下安装一个新的硬件设备,而这个设备在已经安装的Linux内核中
并不支持,这时我们可以尝试采取什么的方法:(多选题) 
   A. 安装新内核 
   B. 重新配置内核 
   C. 安装设备驱动 
   D. 没有办法

10. 在使用ln建立文件符号链接时,为了跨越不同的文件系统,我们需要使用(单选题)
A. 普通链接 
B. 硬链接 
C. 软链接 
D. 特殊链接

11. Which of the following programs could be used to load necessary modules 
when 
the system detects a newly connected USB-device? (单选题)
   A. usb-plug 
   B. hotplug 
   C. usb-dyn 
   D. usbmgr 
   E. usbmanager
12. How can you detect, which PCI devices are connected to your computer? (单
选题)
   A. Using the readpci command 
   B. Using the lspci command 
   C. Using the getpci command 
   D. Using the pci_info command 

13. What is a X-client (单选题)
   A. a computer which uses the X11 Protocol to communicate 
   B. a computer which uses a super-computer to run applications which are 
displayed on the local screen 
   C. a program which is dispayed on a graphical screen of an X Server 
   D. a computer which offers displaying on its screen 
E. a computer with a graphical user interface using X11

14. 内核模块可以动态连接到内核地址空间,和链接为内核代码。每个模块定义了两个例
程(多选题)
   A. init_module() 
B. release_module() 
C. free_module()
D. cleanup_module() 
E. allocate_module()
 

15. 下面的哪个内核启动过程是正确的(单选题)

    A.                                  B.                                C.
 
16. 一个内核模块不是一个可以独立执行的文件,而是需要在运行时刻连接入内核的目标
文件。所以,它们需要用-c选项进行编译。而且,所有的内核模块都必须包含特定的标志,
 以下标志哪些是正确的(多选题)
A. RELEASE
B. __KERNEL__  
C. MODULE  
D. LINUX  
E. DEBUG  

17.  module_register_chrdev用于在内核模块设备表里增加设备驱动。它的返回值表示(
单选题)
  A. 错误代码
  B. 无返回值
C. 该驱动所使用的主码。
D. 主码<<8 + 次码

18.  下面的汇编程序的运行结果是什么(单选题)









A. R0=54 
B. R0=55 
C. R0=56 
D. R0=57

19.  下面有关于实时处理的说法是对的(多选题)
A. 实时进程采用分时调度(SCHED_RR)策略进行调度任务
B. Linux 中加进了POSIX 实时扩展部分
C. Linux允许个进程定义为一个实时进程
D. Linux不支持实时处理

20. 选择一个错误的(单选题)
A. 在Linux 中,内核或驱动程序显式地关/开中断,一般是通过调用cli()/sti()来进行操
作。
B. 当处于cli和sti中间的代码,也就是处于中断关闭其间的代码,绝对不能进行阻塞操作

C. 在中断处理函数中不能使用down这样的临界区操作,因为这有可能引起调度休眠
D. 中断处理使用int process_irq(irq, handler, irqflags, devname,dev_id)函数来调

E.在中断过程中不能有等待操作,更不能出现进程调度这样引起运行上下文改变的操作

21. 在linux系统中,用于保护共享资源的锁有以下几种: (多选题)
A. death_lock 
B. spin_lock 
C. write_lock 
D. read_lock
22. Linux的i节点表从哪一块开始 (单选题)
A. 1 
B. 2 
C. 3 
D. 4

23. PCI设备上有以下哪种地址空间:(多选题)
A. PCI的I/O空间
B. PCI的存储空间
C. PCI的配置空间

24. Linux操作系统中, 对于 32 位字长的处理器可以有多少种信号(signal) (单选题)
A. 16 
B. 32 
C. 64 
D. 232

25.当USB设备接上一个加电端口时,系统采取以下操作:(多选题)
 A. 主机通过寻问集线器决定此次状态改变的确切含义。
 B. 主机发出复位命令给端口。    
C. 主机估测电源的需求,设备处于配置状态
 D. 主机给设备分配一个唯一的地址,设备转向编址状态。

26.  Linux kernel 2.4.x中进程状态包含以下几种状态?
A)TASK_RUNNING
  B)TASK_INTERRUPTIBLE
  C)TASK_UNINTERUPTIBLE
  D)TASK_ZOMBIE
E)TASK_STOPPED
F)TASK_SWAPPING

27. 进程标志PF_STARTING表明: 
 A)进程正在被创建  
  B)进程刚创建,还没执行  
  C)进程开始关闭
  D)进程开始被追踪
  E)进程开始使用FPU

28. kernel 2.4.x 中默认优先级进程的时间片是多少? 
  A)100ms  
B)60ms 
C)90ms  
D)30ms  
E)120ms
29. kernel 2.4.x创建的首个进程的名称: 
  A)swapper进程 
B)Kerneld 
C)KSwap 

30. 大内核与普通内核的分界线是多少K?: 
  A)600K 
B)1M 
C) 508K
D) 800K 
E) 400K
 
--
  ▁▁▁▁▁▁▁▁▁▁▁▁▁。°.▁▁▁▁▁▁▁▁▁▁   ,  
▕       ﹒︰             ☆.                      ︹_ ㄣ  
▕     ﹡   ∵輕輕咬一口  .°                     ▅▎ ▆▎                    
▕           °☆       ﹡∵你就會知道什麽是熱情◢◤ ◢◤                      
  ◥____________·___★∷·_____________▁▃▄▆◤__ █                        
                 °·﹡˙                      ▁▃▄◤    

※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 210.72.131.234]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.121毫秒