定制化软件工程师笔试题

一、 打印如下图案,共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. 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值