问题 判断题

中外合资经营企业增加注册资本,应当经合营各方协商一致,董事会会议通过后,向原登记管理机关办理注册资本的变更登记手续即可。( )

答案

参考答案:

解析: 合营企业增加注册资本应经过四个程序:①合营各方协商一致;②董事会会议通过;③报原审批机关批准;④向原工商行政管理机关办理变更登记手续。本题没有经过原审批机关的批准,所以不具有法律效力。

选择题
问答题

以下是某C++程序,用来判定用户口令,请仔细阅读程序并完成要求。
//**********************************************************//
// 口令检验程序 //
// //
// 文件名:password_check.cpp//
//**********************************************************//
#include
#include
//**********************************************************//
// 主 函 数//
//**********************************************************//
void main(void)
{
char password[128]={’\0’);
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%,需说明为什么。