第1题:
As instructed in your letter of Sept.5, we have opened a letter of credit for your account valid () February 9, 1993.
A、during
B、on
C、from
D、 until
第2题:
The length of a letter does not depend on the subject of the letter.()
第3题:
下列英文拼写正确的是()。
A.邮件种类:parcleofitem
B.邮件:Postalmail
C.函件:Letter-post(items)
D.信函:letter
第4题:
下列英文拼写正确的是()
A邮件种类:parcleofitem
B邮件:Postalmail
C函件:Letter-post(items)
D信函:letter
第5题:
关于下面函数,哪一个是错误描述?defcount_letter_number(string):letter_count=0digit_count=0forchinstring:
if'a'<=ch<='z'or'A'<=ch<='Z':letter_count+=1elif'0'<=ch<='9':digit_count+=1
returnletter_count,digit_count
A.函数能统计字符串中英文字母出现的次数
B.letter_count+=1可以写做letter_count=letter_count+1
C.letter_count+=1可以写做letter_count++
D.函数能统计字符串中数字出现的次数
第6题:
此题为判断题(对,错)。
第7题:
针对一下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%?如果认为无法达到,需说明原因。
第8题:
A、would
B、will
C、should
D、shall
第9题:
第10题:
____ will be appreciated.