问题 填空题

下面程序的作用是用InputBox函数输入一个整数,然后判断能否同时被2,5和7整除, 果能则输出该数及平方值。请填空。  Private Sub Command1_Click()   Dim numX As Integer   numX = Val (InputBox("请输入一个整数"))   If【 】Then     Form1.Print【 】   End If  End Sub

答案

参考答案:numX Mod 2 = 0 And numX Mod 5=0 And numX Mod 7=0

解析:显然If后跟条件,根据已知,条件是“能否同时被2,5和7整除”,所以第一个空应填入:numX Mod2 = 0 And numX Mod 5 = 0 And numX Mod 7 = 0;如果满足条件 就显示出来并显示其平方值,所以第二个空应填入的是:numX,numX^2

单项选择题

阅读下面短文,从短文后各题所给的四个选项(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.

55()

A.hopefully

B.disappointedly

C.gratefully

D.regretfully

多项选择题