问题 听力题

单词拼写(本题共10题,1-5题每题空1分,6-10题每空0.5分,共10分)

根据句子所给单词的首字母或中文意思,在答题纸上按题号写出各单词正确的完全形式(每空限一词)。

小题1:Heavy rains have a_______ the life of about 680,000 people in Hunan province.  

小题2:We admire her for she has a g________ for singing and dancing. 

小题3:To live a long and healthy life,we must learn to have a b_________ diet.

小题4:As is known to all, smoking is h_________ to our health.

小题5:This hotel r________ me of the one we stayed in last year.

小题6:We should ______  ____ (依靠) our parents before we become grow-ups.

小题7:He _____  _____ on (瞧不起) anyone who hasn't had a college education.

小题8: When the fire _____  ____ (爆发),I was reading an interesting book.

小题9:Super-parents Gil and Kelly Bates, from America, love babies so much that they already have ____  ______ (抚养)18 children.  

小题10:After they married, they ______ ______  (定居) in a small village, leading a quiet life.

答案

小题1:affected   

小题1:gift  

小题1:balanced   

小题1:harmful  

小题1:reminds

小题1:rely/depend on  

小题1:looks down 

小题1:broke out 

小题1:brought up 

小题1:settled down

单项选择题
问答题

以下是某C++程序,用来判定用户口令,请仔细阅读程序并完成要求。
//**********************************************************************//
// 口令检验程序 //
// //
// 文件名:password_check.cpp//
//*********************************************************************//
# incllide<iostream.h>
# include<string.h>
//*********************************************************************//
// 主函数 //
//*******************************************************************//
void main(void)

char.password[128]=’\o’;
cout<<"请输入您的口令:";
cout.flush();
while(true)
cin.getline(password,128,’\n’);
if(strlen(password)<6)
//口令长度少于6位

cout<<"您的用户口令少于6个字符!"<<endl;
cout<<"请重新输入:";
cout.flush();
else
bool capital=false;
//检验是否有大写字母
bool lowercase=false:
//检验是否有小写字母
bool digit=false;
//检验是否有数字
for(unsigned int i=0;i<strlen(password);i++)
if(password[i]>=’A’&&password[i]<=’z’)
capital=true;
if(password[i]>=’a’&&password[i]<=’z’)
lowercase=true;
if(password[i]>=’0’&&password[i]<=’9’)
digit=true;

//判断用户输入的口令中缺少哪中字符
if(!capital)
cout<<"您的用户口令中没有大写字母!"<<endl;
cout<<"请重新输入:";
else if(!lowercase)
cout<<"您的用户口令中没有小写字母!"<<endl;
cout<<"请重新输入:";
else if(!digit)
cout<<"您的用户口令中没有数字!"<<endl;
cout<<"请重新输入:";
else
cout<<"您的口令满足要求!"<<endl;
break;




设计一组测试用例,使该程序所有函数的语句覆盖率和分支覆盖率均能达到100%。如果认为该程序的语句或分支覆盖率无法达到100%,需说明为什么。