问题 问答题

请根据以下各小题的要求设计Visual Basic应用程序(包括界面和代码)。

在名称为Form1、标题为“图片”的窗体上画一个名称为Image1的图像框,其高为2500、宽为2000。请通过属性窗口设置适当属性,装入考生目录下的图片文件pic1.jpg,并使图片适应图像框的大小(如图1所示)。
[*]
注意:存盘时必须存放在考生文件夹下,工程文件名为sjt1.vbp,窗体文件名为sjt1.frm。

答案

参考答案:[操作步骤]
第1步:新建一个标准EXE工程。
第2步:设置窗体属性。将窗体的Caption值改为“图片”。因新建窗体的默认名称即为本题要求的名称,故保持窗体的Name属性值Form1不变。
第3步:在窗体上画一个图像框,在属性窗口中将Height属性设为2500,将Width属性设置为2000,将Stretch属性设置为True。单击Picture属性,再单击其后的

按钮,在弹出的对话框中选中图片文件pic1.jpg,再单击“打开”按钮。
第4步:调试、运行并保存程序。

解析: 本题主要考查窗体和图像框的属性。重要的属性是图像框的Stretch属性,其作用是决定是否调整图形的大小以适应图像控件。本题中要求图片适应图像框的大小,因此应将该属性的值设为True。

完形填空
Tess was a precocious(早熟) eight-year-old girl when she heard her Mom and Dad taling about her little brother,Andrew.____ __she knw was that he was very sick and they were completely _____money. They were moving to an apartment complex next month because Daddy didn’t have the money for the doctor’s bills and their house .Only a(n) _____could save him now.
Tess went to her bedroom and pulled a glass jelly(果冻) jar from its hiding place. She poured all the     out on the floor and counted carefully. Three times,even.The total had to be absolutely exact. No      here for mistakes. After carefully placing the coins back in the jar, she slipped out of the back door, and     her way six blocks to a chemist’s.
She waited patiently for the pharmacist (药剂师) to give her some     ,but he was too busy at this moment. Tess twisted her feet to make a noise. Nothing. She cleared her       with the most awful sound she could muster. No good.
Finally the pharmacist asked in an      tone of voice, “What do you want? I’m talking to my brother from Chicago      I haven’t seen in ages,” he said without waiting for a reply to his question.
“Well, I want to talk to you about my brother,” Tess answered back in the same annoyed tone. “His name is Andrew and he has something bad      inside his head and my daddy says only a miracle can save him now. So how much does a miracle cost?”
“We don’t sell miracles here, little girl. I’m sorry,        I can’t help you,” the pharmacist said, his voice        a little.
There was a man there whose clothes were admirable. He asked the little girl, “What kind of a miracle does your brother need?”
“I don’t know” Tess replied with tears in her eyes. “I just know he's        sick and Mommy says he needs an operation. But my Daddy can’t pay       it, so I want to use my money.”
“How much do you have?” asked the man. “One dollar and eleven cents,” Tess answered.
“A dollar and eleven cents ― the       price of a miracle for your little brother,” smiled the man, “Take me to        you live. Let’s see if I have the kind of miracle you need.”
That well-dressed man was Dr. Carlton Armstrong, a surgeon, specializing in neurosurgery (神经外科). The operation was completely        charge and it wasn’t long before Andrew was home again and did well.
Mom and Dad were happy but they wonder how much the operation would have       . Tess smiled. She knew exactly how much a miracle cost…one dollar and eleven cents…plus the        of a little child.     
小题1:
A.AsB.AllC.All whatD.That
小题2:
A.in needB.in short C.out of D.sort of
小题3:
A.miracleB.doctorC.GodD.operation
小题4:
A.changeB.jelliesC.candiesD.cookies
小题5:
A.way B.doubtC.chanceD.wonder
小题6:
A.droveB.foughtC.madeD.struggled
小题7:
A.pillsB.attentionC.medicineD.tablets
小题8:
A.mouth B.eyes C.earsD.throat
小题9:
A.anxiousB.exciting C.annoyedD.tired
小题10:
A.whoB.whereC.becauseD.which
小题11:
A.findingB.planting C.showingD.growing
小题12:
A.andB.or else C.butD.or
小题13:
A.soft B.softenC.softenedD.softening
小题14:
A.really B.real C.firmD.firmly
小题15:
A.backB.for C.offD.up
小题16:
A.actual B.exactC.averageD.true
小题17:
A.the placeB.the apartmentC.the complexD.where
小题18:
A.freeB.free of C.not D.no
小题19:
A.spent B.paid C.cost D.took
小题20:
A.thought B.valueC.patienceD.faith
问答题 案例分析题