第一范文网 - 专业文章范例文档资料分享平台

嵌入式Linux面试试题库

来源:用户分享 时间:2025/7/29 20:12:40 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

}

A、代码Ⅰ,const修饰符表明pcStr指针不能再次被赋值,也就是说不能指向其他缓冲区.

B、代码Ⅱ,程序的运行结果是“4,10”.

C、代码Ⅲ,对pcStr[3]的赋值会导致程序访问非法地址.

D、代码Ⅳ,打印unsigned int时不应该使用“%s”,会导致程序访问非法地址。

31. 关于结构的大小,以下描述正确的有(AB) struct A_S struct B_S { {

unsigned short us1; unsigned char uc1; unsigned short us2; unsigned int uc2; unsigned short us3; unsigned short us3; }; };

union C_U union D_U { {

unsigned int ui1 unsigned char

uc2;

unsigned char uc2; unsigned short us3; unsigned short us3; unsigned int ui1;

}; }; A、结构struct A_S的大小是6 B、结构struct B_S的大小是12 C、联合union C_U的大小是12 D、联合union D_U的大小是12

32.有如下链表和节点D,将D替换B,并删除B,以下代码正确的有( AD ) 单链表:

AA A pstNext pstNext B C PstA pstB

D partD

双链表:

A pstNext pstNext pstPre pstPre B C PstA pstB D

pstD struct SLL { struct SLL *pstNext;/* 下一结点*/ };

struct DLL {

struct DLL*pstNext;/* 下一结点*/ struct DLL*pstPrev;/* 前一结点*/

};

A.

pstB=pstB->patNext; pstD->pstNext=pstB; pstA->pstNext=pstD; free(pstB); B.

pstA->pstNext=pstD;

pstD->pstNext=pstA->pstNext-pstNext; free(pstB); C.

pstA->pstNext-pstNext-pstpre=pstD; pstD->pstNext=pstA->pstNext->pstNext; pstD->pstpre=pstB->pstpre; pstA->pstNext=pstB->pstNext-pstpre; free(pstB); D.

pstD->pstNext=pstB->pstNext; pstD->pstNext->pstpre=pstD; pstD->pstpre=pstA;

pstA->pstNext=pstD; free(pstB);

33.实现从IP地址到以太网MAC地址转换的命令为: C 。 A、ping B、ifconfig C、arp D、traceroute

34.在vi编辑器中的命令模式下,键入 B 可在光标当前所在行下添加一新行。

A、 B、 C、 D、A

35.用命令ls -al显示出文件ff的描述如下所示,由此可知文件ff的类型为 A 。

-rwxr-xr-- 1 root root 599 Cec 10 17:12 ff

A、普通文件 B、硬链接 C、目录 D、符号链接 36.删除文件命令为: D 。 A、mkdir B、rmdir C、mv D、rm

37.DHCP是动态主机配置协议的简称,其作用是可以使网络管理员通过一台服务器来管理一个网络系统,自动地为一个网络中的主机分配___D______地址。

A、网络 B、MAC C、TCP D、IP

38.为了保证在启动服务器时自动启动DHCP进程,应将 A文件中的dhcpd=no改为dhcpd=yes。

A、rc.inet1 B、lilo.conf C、inetd.conf D、httpd.conf 39.对文件进行归档的命令为 D 。 A、dd B、cpio C、gzip D、tar

搜索更多关于: 嵌入式Linux面试试题库 的文档
嵌入式Linux面试试题库.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c9httr7xa7c77t6k14pg60zn011oo6h01ajw_3.html(转载请注明文章来源)
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top