问题 问答题

针对以下C语言程序,请按要求回答问题。
已知weekday.c源程序如下:
#inelude<sgidio.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;

画出主函数main的控制流程图。

答案

参考答案:[*]

完形填空
请先阅读下面短文,掌握其大意,然后从各小题所给的A、B、C、D四个选项中选出可以填入相应空白处的最佳选项,并在答题卷上将该项涂黑。(每小题1分)
I was so excited after I had found the holiday in the guidebook. It said, “Enjoy a week of sightseeing in one of Europe’s most beautiful cities          staying at one of its best hotels. ” Now I wasn’t so sure. I had waited fifteen minutes at reception (前台) when I            and now the shower in my room wasn’t working. I called hotel reception.
“Hello. This is Room 308. There isn’t any            in my bathroom. ”
“Are you sure?”
“Of course I’m sure!
“I’ll            our hotel engineer at once. ”
An hour later, the engineer came to look at the shower. He hit the pipes (管子) a few times and looked          . “Sorry, but I cannot fix it today. Maybe, tomorrow.” Then he            his hand. I couldn’t believe it! He wanted a tip (小费) for doing            ! I was very angry. But suddenly, I had a better idea.            , I gave the engineer a few coins. He hadn’t fixed my shower but he had taught me something about staying in his country. Two minutes later I was at the reception desk. I explained the problem to the receptionist (接待员) and he replied, “Sorry. This is a            situation, but what can we do?” I knew exactly what to do. I gave the hotel manager a very large tip. Fifteen minutes later I            into Room 405. It was twice the size of Room 308, it had a wonderful view (景色) of the city, a comfortable bed and, most importantly, there was water in the bathroom.
小题1:
A.sinceB.whileC.afterD.before
小题2:
A.arrivedB.passedC.leftD.stopped
小题3:
A.toothpasteB.waterC.shampooD.soap
小题4:
A.sendB.catchC.troubleD.bring
小题5:
A.proudB.worriedC.angryD.excited
小题6:
A.put upB.cleaned upC.took backD.held out
小题7:
A.nothingB.anythingC.somethingD.everything
小题8:
A.SeriouslyB.EspeciallyC.QuicklyD.Luckily
小题9:
A.helpfulB.perfectC.terribleD.busy
小题10:
A.brokeB.lookedC.rushedD.moved
单项选择题