"This is my letter to the World" is a poetic expression of Emily Dickinson’s
A、indifference
B、anger
C、anxiety
D、sorrow
A、indifference
B、anger
C、anxiety
D、sorrow
1.A.sends B.sending C.sent D.send
2.A.off B.in C.on D.at
3.A.make B.makes C.making D.made
4.A.to mix B.mixing C.mixed D.mix
5.A.covered B.to cover C.cover D.covering
6.A.up B.over C.down D.on
7.A.what B.when C.where D.how
8.A.let B.made C.had D.took
9.A.over B.at C.on D.with
10.A.to B.when C.until D.than
I don’t want ()sugar in my Coffee.
A.any
B.some
C.a
D.no
A、No, I don’t
B、Sorry, I’m not a football fan
C、It is my hobby
D、That’s my favorite
I bite my hairs. I must break ().
A.the habit to me.
B.the habit with myself.
C.myself of the habit
D.of the habit myself
针对一下C语言程序,请按要求回答问题。
已知weekday. c源程序如下:
include<stidio. h>
include<conio. h>
/ *主函数* /
Int main()
{
Char letter;
Printf("please input the first letter,"Y'to exit!\n");
While((letter=getch())!="Y")//当输入字母为Y时结束
{
Switch(letter)
{
Case'S':
Printf("%c\n",letter);
Printf("please input second letter\n");//输入第二个字母
If((letter=getch())=='a')
Printf("Saturday\n");
Else if(letter=='u')
Printf("Sunday\n");
Else printf('data error\n);
Break;
Case'F':
Printf("fridaykn");
Break;
Case 'M':
Printf("mondayha");
Break;
Case 'T':
Printf("%c\n",letter);
Printf("please input second letter\a");//输入第二个字母
If((letter=getch())=='u')
Printf("Tuesday\n"):
Else if(letter=='h')
Printf("Thursday\n");
Break;
Case 'W':
Printf("Wednesday\n");
}
}
Return 0;
}
(1) 画出主函数main的控制流程图;
(2) 设计一组测试用例,使main函数的语句覆盖率尽量达到100%;
(3) Main函数的语句覆盖率能否达到100%?如果认为无法达到,需说明原因。
—That's a beautiful cat. I wonder whom it belongs to.—().
A.It belongs to the Browns
B.The cat is my favourite too
C.Mind your own business
D.I can’t say anything more
A.I don’t know for sure
B.You can count on it
C.You can believe him
D.It depends
阅读以下函数说明和C语言函数,将应填入(n)处的字句写在对应栏内。
【函数2.1】
void sort(char *s,int num)
{int i,j--num;
char t;
while(j-->1)
for(i=0;i<j;i++)
if(s[i]>s[i+1])
{t=s[i];
s[i]=s[i+1];
s[i+1]=t;
}
void main()
{char *s="CEAedea";
sort(s,5);
printf("%s",s);
}
上述程序的结果是(1)
【函数2.2】
void main()
{ union {int ig[6];
Char s[12];} try;
try. ig[0]=0x4542; try.ig[1]=0x2049;
try. ig[2]=0x494a; try.ig[3]=0x474e;
try. ig[4]=0x0a21; try.ig[5]=0x0000;
pintf("%s",try, s);
}
上述程序的结果是(2)
【函数2.3】
void main()
{ char *letter[5]= { "ab","efgh","ijk","nmop","st"};
char **p;
int i;
p=letter;
for(i=0;i<4;i++) .
printf("%s",p[i]);
}
上述程序的结果是(3)
【函数2.4】
main()
{int i=4,j=6,k=8,*p=&I,*q=&j,*r=&k;
int x,y,z;
x=p==&i;
y=3*-*p/(*q)+7;
z=*(r=&k)=*p**q;
printf("x=%d,y=%d,z=%d",x,y,z);
}
上述程序的结果是(4)
【函数2.5】
int a[]={5,4,3,2,1 };
void main()
{int i;
int f=a[0];
int x=2;
for(i=0;i<5;i++)
f+=f*x+a[i];
printf("%d",f);
}
上述程序的结果是(5)
A: Hey, Lily, what are you doing? L: ___________ for someone. A: You mean the boy you met on WeChat? L: You’re right. He is so ___________ and I think I fall in love with him. A: You must be joking. You can’t fall in love with someone you’ve never met! L: I know, but I keep thinking of him every day. And I get really depressed (沮丧的) when he’s not online. A: I think you just have a crush on him. You can’t be serious. L: Well, this might be silly. But I just can’t get him off my ___________. And I can’t help missing him. A: Did you tell him? L: Yes. He said I’m his dream girl. A: You shouldn’t take it too seriously. It might be a _______. L: I know. I can’t tell whether he’s serious or not so I need your ___________. A: I think you should enlarge your circle of real-life friends, and then the right person will come along.