盟讯笔试题(带参考答案).doc

  1. 1、本文档共9页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
盟讯笔试题(带参考答案)

本试题答案仅供参考 一、英文翻译,请将下文翻译为中文(5分)all the functionality needed to build applications with state-of-the-art graphical user interfaces. Qt is fully object-oriented , easily extensible, and allows true component programming. Qt是一个跨平台的C++图形用户界面应用程序框架,它提供给应用程序开发者所需的所有功能和图形界面。QT是完全面向对象的,很容易扩展,并且允许真正的组件编程。 Since its commercial introduction in early 1996. Qt has formed the basis of many thousands of successful applications worldwide. Qt is also the basis of the popular KDE Linux desktop environment , a standard component of all major Linux distributions. Qt/Embedded Free Edition is the Embedded version of Qt. It is provided free of charge under the forms of the GNU General Public License. Qt/Embedded免费版是QT嵌入式版本。它是免费提供的GNU通用公共许可证的形式下。 二、填空题(40分) 请写出Linux下的命令:(4分) 找出/tmp目录中,内容有hello world 的所有文件。 grep -l ‘hello world’ /tmp/* 找出/work目录中,文件后缀名为.cpp的所有文件。 find /work *.cpp 查看本机的当前网络连接状况。 ifconfig 查看当前系统中的所有进程。 ps -aux 请写出SQL语句:(1分) 选出record表中name字段等于”Timmy”的记录,并按date字段逆序排序。 select * from record where name =’Timmy’ order by date DESC 请说明使用数据库事务(Transaction)的目的。(1分) 将一系列语句作为一个逻辑单元一起执行,若有失败则一起回滚 Linux下进程间通信的方式有哪几种?(4分) 管道 信号量 内存共享 消息队列 套接字 对于1000个已经排序的整数数据,使用二分查找法找出整数K在该数组中的下标,最多需多少次?(2分) 9次 假设基于32位平台,请写出以下代码运行输出的结果。(3分) typedef struct worker { char name[10]; int age; bool sex; int level; } worker; main() { worker w[3]; printf(size of data : %d, sizeof(w)); } 输出结果: size of data :_____72_____ 请说明下列代码运行后的结果:(6分) 1) void get_str(char *p) { p = (char*)malloc(strlen(abcd) + 1); strcpy(p, abcd); } main() { char *p = NULL; get_str(p); printf(%s, p); } 输出NULL 2) char *get_str() { char *p = Hello World; return p; } main() { printf(%s, get_str()); } 输出Hello World 3) char *get_str() { char p[] = Hello World; return p; } main() { printf(%s, get_str()); } 输出结果不确定 get_str 返回的是局部变量指针,而局部变量在函数执行完后 自动释放,所以输出的结果不确定 请说明下列代码运行后的打印输出:(3分) class A { public: A(){ func(1); } virtual void func(int data){ printf(A1); } void func(char *str){ printf(A2);} }; c

文档评论(0)

mv2323 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档