问题 单项选择题

下列程序的功能是调用字体对话框米设置文本框中的字体,单击Command1按钮弹出对话框,进行相应的字体、字号等的设置,然后单占“确定”按钮退出对话框,则将发生哪些变化( )。 Private Sub Command1_Click() Common Dialog1.Cancel Error=True Common Dialog1.Flags=3 On Error Resume Next Common Dialog1.ShowFont Text1.Font.Name=CommonDialog1.FontName Text1.Font.Size=CommonDialog1.FontSize Text1.Font.Bold=CommonDialog1.FontBold Text1.Font.Italic=CommonDialog1.FontItalic Text1.Font.Underline=CommonDialog1.FontUndeline Text1.FontStrikethru=CommonDialog1.FontStrikethru Text1.ForeColor=CommonDialog1.Color End Sub

A.Text1的字体不发生变化

B.Text1的字体发生变化

C.Text1的字体和颜色发生变化

D.程序出错

答案

参考答案:B

解析: 通用对话框的Flags属性设置为3,从而可以设置屏幕显示和打印机字体,接着用ShowFont方法建立字体对话框,如下图所示。

“字体”对话框中并没有设置颜色的选项,所以文本框中的字体、字形、字号会发生相应的变化,但是字体的颜色并不会改变。

多项选择题
单项选择题

阅读下面短文,从短文后各题所给的四个选项(A、B、C和D)中,选出可以填入空白处的最佳选项,并在答题卡上将该项涂黑。学科&网

Hundreds of people have formed impressions of you through that little device(装置) on your desk. And they’ve never actually   41   you. Everything they know about you   42   through this device, sometimes from hundreds of miles away.   43   they feel they can know you   44   from the sound of your voice. That’s how powerful the   45   is.

Powerful, yes, but not always   46  . For years I dealt with my travel agent only by phone. Rani, my faceless agent whom I’d never met   47  , got me rock-bottom prices on airfares, cars, and hotels. But her cold voice really   48   me. I sometimes wished to   49   another agent.

One morning, I had to   50   an immediate flight home for a family emergency. I ran into Rani’s office   51  . The woman sitting at the desk,   52   my madness, sympathetically jumped up. She gave me a   53   smile, nodded while listening patiently, and then printed out the   54   immediately. “What a wonderful lady!” I thought.

Rushing out   55   I called out over my shoulder, “By the way, what’s your name?” “I’m Rani,” she said. I turned around and saw a   56   woman with a big smile on her face waving to wish me a safe trip. I was   57  ! Why had I thought she was cold? Rani was, well, so   58  .

Sitting back in the car on the way to the airport, I figured it all out. Rani’s   59  ---her warm smile, her nods, her ‘I’m here for you’   60  ---were all silent signals that didn’t travel through wires.

42()

A. came

B. moved

C. ran

D. developed