A、were both womens
B、both were women-driver
C、both were women drivers
D、were both women-drivers
第1题:
13.
A.I
B.I'm
C.My
D.Her
第2题:
使用VC6打开考生文件夹下的工程test6_1,此工程包含一个源程序文件test6_1.cpp,但该程序运行有问题,请改正程序中的错误,使程序的输出结果如下:
Constructor2
Constructor1
i=0
i=10
Destructor
源程序文件test6_1.cpp清单如下:
include<iostream.h>
class CSample
{
int i;
public;
CSample(){cout<<"Constructorl"<<endl;i=0;)
CSample(int val){cout<<"Constructor2"<<endl;i=val;}
~CSample()(cout<<"Destructor"<<endl;)
void disp();
};
/**********found********/
void disp()
{
cout<<"i=”<<i<<endl;
}
void main()
{
CSample *a,b(10);
/**********found*********/
a->disp();
/**********found*********/
b->disp();
}
第3题:
此题为判断题(对,错)。
第4题:
下面程序输出的结果是( )。 #include<iostream> using namespace std; void main() { char ch[][8]={"good","better","best"}; for(int i=1;i<3;++i) { cout<<ch[i]<<endl; } }
A.good better
B.better best
C.good best
D.good
第5题:
Today is (11) 15. It’s Marie-s birthday.(12) friends (13) here.They are Linda, Tom, Peter,John, and Lucy. Her (14) are here, too. There(15) a big cake on the table.There are fourteen candles (16) the cake. There (17) also salad, ham-burgers, fish, eggs,and vegetables on the table. Marie is very happy.They (18) the song Happy Birthday to Marie. Marie gets (19) gifts (20) her friends. She is very happy.
( )11.
A. October
B. Fifth
C. october
D. Fifteenth
第6题:
—Which subject do you like______?
—I like chemistry than any other one.
A. better, better
B. best, better
C. best, best
D. better, best
第7题:
下列给定函数中,函数fun()的功能是:统计字符串中各元音字母(即A,E,I,O,U)的个数。注意:字母不分大小写。例如,输入THIs is a boot,则应输出是1 0 2 2 0。
请改正程序中的错误,使它能得出正确的结果。
注意:不要改动main函数,不得增行或删行,也不得更改程序的结构。
试题程序:
include <conio.h>
include <stdio.h>
/*************found**************/
fun(char *s, int num[5])
{ int k, i=5;
for(k=0;k<i;k++)
/*************found**************/
num [i]=0;
for{;*s;s++)
{ i=-l;
/*************found**************/
switch(s)
{ case 'a': case 'A':{i=0;break;}
case 'e': case 'E':{i=1;break;}
case 'i': case 'I':{i=2;break;}
case 'o': case 'O':{i=3;break;}
case 'u': case 'U':{i=4;break;}
}
if(i>=0)
num[i]++;
}
}
main ( )
{ char s1[81]; int num1[5], i;
clrscr ();
printf("\nPlease enter a string: ");
gets (s1);
fun{s1, num1);
for(i=0;i<5;i++) printf("%d",num1[i]);
printf ("\n");
}
第8题:
下列给定程序中,函数fun()的功能是:用冒泡法对6个字符串按由小到大的顺序进行排序。
请改正程序中的错误,使它能得出正确的结果。
注意:不要改动main函数,不得增行或删行,也不得更改程序的结构.
试题程序:
include <conio.h>
include <stdio.h>
define MAXLINE 20
/*************found**************/
fun(char *pstr[6])
{int i, j;
char *p;
for(i=0;i<5;i++)
{for(j=i+l;j<6;j++)
/*************found**************/
{ if(strcmp(*(pstr+i),pstr+j)>0)
{
p=*(pstr+i);
/*************found**************/
* (pstr+i) -pstr+j;
* (pstr+j)=p;
}
}
}
}
main ( )
{ int i;
char *pstr[6],str[6][MAXLINE];
clrscr();
for(i=0;i<6;i++) pstr[i]=str[i];
printf("\nEnter 6 string(1 string at each
line):\n ");
for(i=0;i<6;i++) scanf("%s",pstr[i]);
fun(pstr);
printf("The strings after sorting:\n ");
for(i=0;i<6;i++) printf("%s\n ",pstr[i]);
}
第9题:
"Oh, I'm sorry," he ______ her.
A、cried
B、told
C、apologized
D、said
第10题:
6.______ Jenny._______name is Tom.
A.I'm;My
B.Her;My
C.I'm;His
D.She's;Her