资格证大类 - 计算机等级
下列选项中不属于软件生命周期开发阶段任务的是
A)软件测试
B)概要设计
C)软件维护
D)详细设计
类是由成员变量和【】组成。
(10)在SQL的CREATETABLE语句中,为属性说明取值范围(约束)的是____短语。
A、菜单栏
B、标题栏
C、滚动条
D、边框
使用VC6打开考生文件夹下的工程RevProj8。此工程包含一个源程序文件 RevMain8.cpp。在该文件中,函数resort的功能是:能在一个数列中,对从指定位置开始的几位数,按相反顺序重新排列,并在主函数中输出新的序列。
请改正程序中的错误,使它能得到正确结果。
注意,不要改动main函数,不得删行或增行,也不得更改程序的结构。
源程序文件RevMain8.cpp中的程序清单如下:
//RevMain8.cpp
include <instream>
using namespace std;
void resort(int arr[],int where,int amount);
int main ()
{
int number [20] ,where, arrount, i;
cout<<"Input 20 numbers\n";
for (i=0; i<20; i++)
cin>>number [i];
cout<<"How many do you want to sort: ";
cin>>arrount;
cout<<"\n where do you want to start: ";
cin>>where;
cout<<"old array as follow:\n";
for (i=0; i<20; i++)
cout<<nmuber [i] <<" ";
resort (number,where, arrount);
cout<<"\n resorted array as follow:\n";
for (i=0; i<20; i++)
cout<<number [i] <<" ";
cout<<end1;
return 0;
}
void resort(int array[],int where, int amount)
{
int *pi, *p2, temp;
p1=&array [where-1];
p2=&array [where-2+amount];
/* * * * *FOUND * * * * */
for (;p1<&array [where-1+amount/2]; )
{
/* * * * *FOUND * * * * */
*p1=*p2;
*p2=*p1;
}
return;
}
以下程序的输出结果是 【 18 】 。
# include
main( )
{ char *s1,*s2,m;
s1=s2=(char*)malloc(sizeof(char));
*s1=15; *s2=20; m=*s1+*s2;
printf("%d\n",m);
}
在关系运算中,要从关系模式中指定若干属性组成新的关系,该关系运算称为【6】
( 29 )在 VBA 中,实现窗体打开操作的命令是( )
A ) DoCmd.OpenForm
B ) OpenForm
C ) Do.OpenForm
D ) DoOpcn.Form
下列叙述中正确的是
A.软件测试的主要目的是发现程序中的错误
B.软件测试的主要目的是确定程序中错误的位置
C.为了提高软件测试的效率,最好由程序编制者自己来完成软件测试的工作
D.软件测试是证明软件没有错误
A. -15,15
B. -14,15
C. -14,14
D. -15,14