定制化软件工程师笔试题
2006-11-12 17:01
309 查看
一、 打印如下图案,共19行,只能有一个for循环(题目已经提供)
*
***
*****
*******
*********
***********
*************
***************
*****************
*******************
*****************
***************
*************
***********
*********
*******
*****
***
*
for(i=0;i<19;i++)
{
}
二、 请填写BOOL , float, 指针变量 与“零值”比较的 if 语句。(10分)
提示:这里“零值”可以是0, 0.0 , FALSE或者“空指针”。例如 int 变量 n 与“零值
”比较的 if 语句为:
if ( n == 0 )
if ( n != 0 )
以此类推。 7
请写出 BOOL flag 与“零值”比较的 if 语句:
请写出 float x 与“零值”比较的 if 语句:
请写出 char *p 与“零值”比较的 if 语句:
三、编写类String的构造函数、析构函数和赋值函数(25分)
已知类String的原型为:
class String
{
public:
String(const char *str = NULL); // 普通构造函数
String(const String &other); // 拷贝构造函数
~ String(void); // 析构函数
String & operate =(const String &other); // 赋值函数
private:
char *m_data; // 用于保存字符串
};
请编写String的上述4个函数。
四、 下面的表有问题吗?如果有,如何改进?
城市* 街道* 邮政编码
佛山 金鱼街 528000
佛山 大福路 528000
佛山 季华路 528000
广州 北京路 510000
广州 三元里 510000
广州 中山路 510000
… … …
城市和街道联合做主键 ,9分成二个表,第一个表有以下字段:城市和街道,以城市作为主键;第二个表:街道和邮政编码 ,以街道为主键.通过街道与第一个表的街道相关联
五、 写一段Jdbc连Oracle的程序,并实现数据查询.
六、 综合测试
1、 两根不均匀分布的香,每根烧完的时间是一小时,你能用什么方法来确定15分钟的时间?
2、 S先生、P先生、Q先生他们知道桌子的抽屉里有16张扑克牌:红桃A、Q、4 黑桃J、8、4、2、7、3 草花K、Q、5、4、6 方块A、5。约翰教授从这16张牌中挑出一张牌来,并把这张牌的点数告诉 P先生,把这张牌的花色告诉Q先生。
这时,约翰教授问P先生和Q 先生:你们能从已知的点数或花色中推知这张牌是什么牌吗?
于是,S先生听到如下的对话——
P先生:我不知道这张牌。
Q先生:我知道你不知道这张牌。
P先生:现在我知道这张牌了。
Q先生:我也知道了。
听罢以上的对话,S先生想了一想之后,就正确地推出这张牌是什么牌。 请问:这张牌是什么牌?
3、 请以事件“去电脑城配一台电脑”编写一个购买流程图。用方框图表示。
4、 经常去的技术网站,请举例。
七 英文翻译
The Internet is a huge interconnected system, but it uses just a handful of method to move data around. Until the recent explosion of public interest in the Internet, the vast majority of the computers on the Net use the Unix operating system. As a result, the standard Unix commands for certain Internet services have entered the online community’s languages as both nouns and verbs to describe the services themselves. Some of the services that the Internet can provide are: Mail, Remote use of another computer (Telnet), File Transfer (FTP), News, and Live conversation.
*
***
*****
*******
*********
***********
*************
***************
*****************
*******************
*****************
***************
*************
***********
*********
*******
*****
***
*
for(i=0;i<19;i++)
{
}
二、 请填写BOOL , float, 指针变量 与“零值”比较的 if 语句。(10分)
提示:这里“零值”可以是0, 0.0 , FALSE或者“空指针”。例如 int 变量 n 与“零值
”比较的 if 语句为:
if ( n == 0 )
if ( n != 0 )
以此类推。 7
请写出 BOOL flag 与“零值”比较的 if 语句:
请写出 float x 与“零值”比较的 if 语句:
请写出 char *p 与“零值”比较的 if 语句:
三、编写类String的构造函数、析构函数和赋值函数(25分)
已知类String的原型为:
class String
{
public:
String(const char *str = NULL); // 普通构造函数
String(const String &other); // 拷贝构造函数
~ String(void); // 析构函数
String & operate =(const String &other); // 赋值函数
private:
char *m_data; // 用于保存字符串
};
请编写String的上述4个函数。
四、 下面的表有问题吗?如果有,如何改进?
城市* 街道* 邮政编码
佛山 金鱼街 528000
佛山 大福路 528000
佛山 季华路 528000
广州 北京路 510000
广州 三元里 510000
广州 中山路 510000
… … …
城市和街道联合做主键 ,9分成二个表,第一个表有以下字段:城市和街道,以城市作为主键;第二个表:街道和邮政编码 ,以街道为主键.通过街道与第一个表的街道相关联
五、 写一段Jdbc连Oracle的程序,并实现数据查询.
六、 综合测试
1、 两根不均匀分布的香,每根烧完的时间是一小时,你能用什么方法来确定15分钟的时间?
2、 S先生、P先生、Q先生他们知道桌子的抽屉里有16张扑克牌:红桃A、Q、4 黑桃J、8、4、2、7、3 草花K、Q、5、4、6 方块A、5。约翰教授从这16张牌中挑出一张牌来,并把这张牌的点数告诉 P先生,把这张牌的花色告诉Q先生。
这时,约翰教授问P先生和Q 先生:你们能从已知的点数或花色中推知这张牌是什么牌吗?
于是,S先生听到如下的对话——
P先生:我不知道这张牌。
Q先生:我知道你不知道这张牌。
P先生:现在我知道这张牌了。
Q先生:我也知道了。
听罢以上的对话,S先生想了一想之后,就正确地推出这张牌是什么牌。 请问:这张牌是什么牌?
3、 请以事件“去电脑城配一台电脑”编写一个购买流程图。用方框图表示。
4、 经常去的技术网站,请举例。
七 英文翻译
The Internet is a huge interconnected system, but it uses just a handful of method to move data around. Until the recent explosion of public interest in the Internet, the vast majority of the computers on the Net use the Unix operating system. As a result, the standard Unix commands for certain Internet services have entered the online community’s languages as both nouns and verbs to describe the services themselves. Some of the services that the Internet can provide are: Mail, Remote use of another computer (Telnet), File Transfer (FTP), News, and Live conversation.
相关文章推荐
- 近期笔试心得(软件工程师,周立功2011校园招聘)
- 世联地产软件工程师笔试试题
- 笔试收录---百度[软件工程师]
- 软件工程师笔试题目(C++)
- 2007年11月神州数码软件工程师(网络公司)招聘笔试题目
- 嵌入式软件开发——嵌入式软件工程师笔试题(含答案)
- 2016联想校招图形图像软件工程师在线笔试真题
- [转]应聘Java,jsp,j2ee软件工程师笔试中可能出现的问题
- 龙旗控股笔试2010n年笔试题(面向软件工程师,软件测试工程师)
- ]软件工程师笔试题
- 浙江大华嵌入式软件工程师笔试题
- 百度笔试题 [软件工程师]
- 嵌入式软件工程师笔试必看经典题
- 软件工程师笔试(北京轩辕科技)
- 软件工程师笔试(北京华瑞实创)08.3.11
- 应聘Java,jsp,j2ee软件工程师笔试中可能出现的问题
- 嵌入式软件开发——嵌入式软件工程师笔试题
- 2012-09-21凤凰网——软件工程师笔试题
- 软件工程师笔试题(C/C++)
- iOS软件工程师笔试题系列1