问题 单项选择题

表单名为myForm的表单中有一个页框myPageFrame,将该页框的第3页(Page3)的标题设置为“修改”,可以使用代码______。

A.myForm.Page3.myPageFrame.Caption="修改"
B.myForm.myPageFrame.Caption.Page3="修改"
C.Thisform.myPageFrame.Page3.Caption="修改"
D.Thisform.myPageFrame.Caption.Page3="修改\

答案

参考答案:C

解析: 在容器的嵌套层次关系中,引用其中某个对象,需指明对象在嵌套层次中的位置。经常要用到的关键字是:Parent(对象的直接容器对象,即父对象);This(当前对象);ThisForm(当前表单);ThisFormSet(当前表单集)。本题将该页框的第3页(Page3)的标题设置为“修改”,正确的代码应该是Thisform.myPagetFame.Page3.Caption="修改",即C选项。

完形填空

阅读下列短文,根据短文内容,从短文后的选项中选出能填入空白处的最佳选项。选项中有两项为多余选项。把正确答案填在答题卡上。

Ali is from a Middle Eastern country. He now stays in the USA. He smokes a lot of cigarettes every day. He has smoked for nine years. Ali says, “I tried to give up smoking in my hometown, but it was impossible. My parents smoke. My brothers smoke. All my friends smoke. At parties and at meetings, almost all the men smoke. Here in the United States, not as many people smoke.  ____小题1:____ ”

Many smokers are like Ali: they want to stop smoking.  ____小题2:____ They know it can cause cancer and heart disease. But it is difficult for them to give up smoking because cigarettes have a drug in them. The drug is nicotine. People who smoke a lot need nicotine.

____小题3:____  The nicotine makes him sick. In a few days, the smoker’s body is used to the nicotine, and he feels fine. Later, the smoker needs nicotine to keep feeling fine. Without nicotine, he feels bad.

____小题4:____  Many people who quit will soon smoke again. At a party or at work they will decide to smoke “just one” cigarette. Then they will smoke another cigarette, and another. Soon they become smokers again.  ____小题5:____     

A.It will be easier to change the smoking habit here.

B.It is very hard to quit smoking.

C.Thus nicotine makes smokers addicted to cigarettes.

D.When a person first begins to smoke, he usually feels terrible.E. The smokers know that smoking is bad for their health.  

F. But it is said that medicine is needed to stop them from smoking.

G. Maybe there is only one easy way to quit smoking: never start. 

单项选择题