VB程序刷题题

VB程序刷题题

ID:83407763

大小:14.19 MB

页数:131页

时间:2023-07-02

上传者:灯火阑珊2019
VB程序刷题题_第1页
VB程序刷题题_第2页
VB程序刷题题_第3页
VB程序刷题题_第4页
VB程序刷题题_第5页
VB程序刷题题_第6页
VB程序刷题题_第7页
VB程序刷题题_第8页
VB程序刷题题_第9页
VB程序刷题题_第10页
资源描述:

《VB程序刷题题》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1.᝞ᑏḄ⌕ᵨᙠᙽAஹᙽBஹ᪗!ᙽCஹ"Dஹᙽ2.ᙽᦻ$Ḅ᡽&'(-fa]_______,᪗!ᙽḄ᡽&'(.bas஺3.Vb01ᢥ34ᑏḄ567ᑏᙠ3893Ḅ:;ᵨ()>?53ᑏ@67ᑣᔜ67Cᵨᑖ◞஺Gṹ3IJKᢥ_enterLᐝ᪗NO஺4.VBḄBytePᦪRḄᦪSUᙠ-255ᑮ255WC஺┯Y[0to255]5.NᑡᦪRPᓰᵨᑁ]ᨬ_Ḅ1`________஺AஹBooleanBஹByteCஹIntegerDஹSingle6.67Print“5*20”Iab1cAஹ”5*20"Bஹa┯Cஹ5*20Dஹ1007.67Dima,basstring,cascurrencyd%=lᑣa,b,c,dḄᦪRPᑖc(dPஹefgPஹhiPஹ᦮P8.8ᨵᦻl᪾n$Textl,Ꮇpq]ᙠr᦮Pdsa,btc,udsaS(5,dsbḄS(7,dscḄS(12,ᑣvNḄ67wvxᦻl᪾ᑁyzḄᑁ{(|5+7=12AஹText1.Text=a+b=cBஹText1.Text=,,a+b=c"CஹTextl=a&“+"&b&“="&c(}~ឋ1text,ᦑwḕᶍ)9.DஹTextl="a''&"+''&"b''&"="&"c”10.vNᨵᐵdsᵨḄ┯Ḅ1a_A.ᨵᙠ᪗!ᙽᵨpublic67Ḅds1ᐰds(3)B.ᙠxᵨpublic67ᐰdsC.ᙠ᪗!ᙽḄᵨᜐwᵨprivate67ᙽdsD.ᙠḄᵨᜐwᵨprivate67ds11.ᙠwvᵨb—67dsAஹDimPrivateBஹDimStaticCஹDimPrivateD^StaticPrivate12.5Kᶇ¡dsḄSᑣxᵨᐵLeᙠ¡dsAஹdimprivateCஹpublicDஹstatic13.ᑖ᪆67PrivateSubForm_Click()DimxAsString*5x="abc"y%=1Printx&yx=HabcdefgnPrintx&yEndSubᑣᓫ¤yzbḄ¥3(_abc1____>¥§3(_abcdel14.VB¨©ª¨f«ᡈ◀ஹ᦮◀ஹ®¯Ḅ°ᐜ²³ᑮ´µ¶(oAஹ«ᡈ◀ஹ®¯ஹ᦮◀Bஹ«ᡈ◀ஹ᦮◀ஹ®¯Cஹ᦮◀ஹ®¯ஹ«ᡈ◀Dஹ᦮◀ஹ«ᡈ◀ஹ®¯15.⊤¸¹10\6=10mod6Ḅª¨b1false16.2&<1">"ᦋ(16”Ḅª¨b1__false17.»¼½¾¿᦮ᦪNḄ¾ᦪÀᓝ¾ᦪᣚÃᑮÄᦪḄVB⊤¸¹1(nmod10,)*10+n\1018.ᵨᐵŪ¨fÆÇCint(3.8)ஹFix(3.8),Int(3.8),3.8Ḅᜧ_ᐵÅcint(3.8)_>_3.8>Fix(3.8)=Int(3.8)_19.N☢⊤¸ËS(ÌḄ1_b___

1A.78.9/32.77<=957/43.91And-45.4>-4.98B,"ABCRG”>"abcde”C.Int(134.69)>=Cint(134.69)D.MidC'VisualBasic”,1,12)=RightCY>Z"¿ÍḄVBÎÏ⊤¸¹1_a_(02#)AஹX>YAndY>ZBஹX>Y>ZCஹX>YorY>ZDஹX>YAnd>Z21.67dimxasdate|x=#02/17/1980#ᑣmonth(x)=_0222.Chr(Asc("x")+2)ḄS(—z23.ª30ÑÒÓÔÕÖ_c_wv×Ø0ª3Aஹᢥ[ctrl[+[c]LBஹᢥ[ctrl]+[z]LCஹᢥ[ctrl]+[break]LDஹᓫ¤“Úت3"ᢥÜ24.ÝᦪInStr("windows©',Mid("winnl"2,2))ḄÞßà1c°Aஹ0Bஹ1C.2Dஹ325.áefgAx²¥1âãäfåḄ>æ5ef⊤¸¹ᑏd஺AஹMid(Ax,l,5)BஹMid(Trim(Ax),l,5)CஹLeft(Ax,5)DஹLeft(Trim(Ax),5)26.ª3Öᓫ¤Kµ¶Iᐭ10ஹ37ஹ50ஹ55ஹ56ஹ64ஹ20ஹ28ஹ19ஹ-19ஹ0,ᑏaª3b஺PrivateSubForml_Click()DimyasIntegerDoy=[nputb0x("y=”)If(yMod10)+Int(y/10)=10ThenPrintyLoopUntily=0EndSub27.0ª3Öᓫ¤Command1KIᐭ12345678,ᑏa8ḄIab஺PrivateSubCommandl_Click()DimxAsLong,yAsStringx=InputBox(',Hèn')DoWhilex<>0y=y&xMod10y=x\I0ModlO&yx=x\100printyLoopEndSub28.ᑨê⚪|“A=B=C”1ᔠḄVisualBasic67஺true29.dsxஹyḄᨬᜧᦪíSîdsa,¿ÍḄ⊤z(aAஹa=x:Ify>xThena=yBஹIfy>xThena=y:a=xCஹa=Ify>xThenyElsexDஹIfy>xThena=yElsea=xEndIf(ᣚ3)30.ᵫFork=35To0Step3:NextkÔÕ67nᑴḄÔÕ¶ᦪ1a஺Aஹ0Bஹ12Cஹ-11Dஹ-1031.5(Subaa(nasinteger),ᑣᵨñòÀóò1ᢥᙢᙬö⌴஺AஹCallaa(5)BஹCallaa(n+l)CஹCallaa(n)DஹCallaa(i-l)32.ø0ᑏaª3Ö᡻3Nᑡú$Ḅyzb஺PrivateSubCommand1_Click()Fori=2To20IfiMod2=1AndiMod3=2ThenPrintiNexti

2PrintiEndSub33.µ¶ᑏaNᑡ0ª3Öû¶ᓫ¤üýᢥÜCommand1K8ḄIab஺DimxAsInteger,yAsIntegerPrivateSubfl(aAsInteger)a=a/2EndSubPrivateSubf2(ByValbAsInteger)b=b/2EndSubPrivateSubCommandl_Click()Callfl(x)Callf2(y)Printx,yEndSubPrivateSubFormLoad()x=64:y=64EndSub34.ᑏaNᑡ0ª3Ö;ᓫ¤üýᢥÜn$CommandlK8Ḅyzb஺PrivateFunctionfl(nAsInteger)AsIntegerStaticiAsIntegerWhilei<=nf1=fl+ii=i+1WendEndFunctionPrivateFunctionf2(ByValnlAsInteger,n2AsInteger)AsIntegerDimiAsIntegerDoWhilen2>=n1f2=f2+n2n2=n2-1LoopEndFunctionPrivateSubCommandl_Click()DimaAsInteger,bAsIntegerPrintfl(3)Printfl(5)a=5:b=8Printf2(a,b)Printf2(b,a)EndSub35.ᑏaª3Ö½¶ᓫ¤KÿḄDimxasBytePrivateStaticSubForml_Click()DimyasByte,zasByteCallInit(y,z)CallOP(x,y,z)Printx,y,zEndSubPrivateSubInit(aASByte,bASByte)a=a+1b=b+2:x=a+b

3EndSubPrivateSubOP(ByVaiuASByte,vASByte,ByRefwASByte)u=u+1:v=v+u:w=u+v+wEndSub36.⌕ᦋLabell᪗ᦻḄ⁐ḄឋAஹColorBஹForeColorCஹBackColorDஹFontColor37.ᦻ᪾ḄឋFalse,!"ᦻ#$%&஺AஹLockedBஹEnabledCஹMultiLineDஹVisible38.ᑨ)⚪ᓫ⌱ᢥ./0⌱᪾12ḄValueឋ34$56789:TrueᡈFalse஺39.ᑨ)⚪:ᑡ⊤᪾ListlḄᨬ@AB⊤⚗Listl.List(Listl.Listcount)஺40.᡻EFᑡGH@ᑡ⊤᪾ᔜ⊤⚗JK—Listl.ClearFori=lto4:Listl.Additemi-1,0NextiAஹ0ஹ0ஹ0ஹ0Bஹ1ஹ2ஹ3ஹ4Cஹ0ஹ1ஹ2ஹ3Dஹ3ஹ2ஹ1ஹ041.JKᑏOPEQᙠᦻ᪾TextlSᐭabed@ᑡ⊤᪾ListlḄᔜ⊤⚗஺DimsAsStringPrivateSubForm_Load()Listl.ClearTextl.TextU஻஻EndSubPrivateSubTextlChange()s=s+Textl.TextListl.AdditemsEndSub42.HscrolllḄឋ᝞FHscrolll.Min=1Hscrolll.Max=9Hscrolll.ValuedHscrolll.SmallChange=2Hscrolll.LargeChangeMFᑡXKPEQ,4YᓫZ[\ᩩ^_`ᜮᑏOᔜYᓫZQText1Ḅ஺DimyAsSinglePrivateFunctionfl(x2AsIntegr)AsSingleStaticxlAsIntegerfl=0Fori%=xlTox2fl=fl+i%Nexti%xl=i%EndFunctionPrivateSubHscrolll_change()y=y+fl(Hscrolll.Value)Textl.Text=y

4Endsub43.ᑏOFᑡXKPE@bcḄSODima(100)asByte,tasBytePrivateSubFormlLoadOTimerl.Interval=256t=0EndSubPrivateSubTimerlTimer()t=t+1a(t)=a(t-l)+tTimerl.Interval=Timerl.Interval/4Printt,a(t)EndSub44.PEQdTextl.TexteᙠTextlfgSᐭᯖi@jYᢥFᑡᢥk“1”ஹ“2"ஹ“+”ஹ“3”ஹ“4”ஹ“A”ஹ“5”ஹ“6"ஹ“/”ஹ“1”ஹ“4”ஹpqkrᑏObcḄSO஺PrivateSubTextl_KeyPress()IfkAsc("9")thenk=0PrintTextl.TextEndifEndSub1ஹᙠVBḄwXwXᦻḄ᡽yz{஺AfrmBvbgCvbpDbasᫀC11iVBiᵨḄwXᳮ᛻2ஹᙠVBḄᵨXKbcᦻḄ᡽yz{—AfrmBvbgCvbpDbasᫀA

511iVBi/VBḄwXᳮ᛻3ஹᙠVBḄᵨXK᪗ᙽᦻḄ᡽yz{஺AfrmBvbgCvbpDbasᫀD11iVBi/VBḄwXᳮ᛻4ஹFᐵ¡wXḄ¢£!¤Ḅ{஺A¡wXQ7¡bcᦻᓽB:¡wXQ7¡wXᦻᓽCᐜ¡bcᦻ§¡wXᦻD:ᐜ¡wXᦻ§¡bcᦻᫀC11iVBi/VBḄwXᳮ᛻5ஹᙠ☢ᔣ12ḄXK«ᨬ¬Ḅᐗ®{A஺AbcᦻBwXᦻCឋD12ᫀD11iVBi/VBḄ%X᛻6ஹᙠPEXKQd⌕°ᦻ᪾fgSᐭᯖi±ᵨᦻ᪾12Ḅ²£ᩭ´µ஺ARefreshBGetFocus

6CSetFocusDTabᫀC22iVBi/Áᓫ«7ஹᙠPEXKQd⌕fgᵨᡝᙠᦻ᪾ᡠ⌱ÅḄᦻÆÇÈÉឋᩭ´µ஺ASelStartBSelLengthCTextDÎSelText答案:D等级1・♦知识1大VBi/Áᓫ«8ஹd⌕ᦻ᪾ᨬᜧÑᦈḄÓÔᦪÆÇÖឋᩭ´µ஺AMultiLineBÎLengthCMaxDMaxLengthᫀD1Ii:i/Áᓫ«9ஹbcḄ᪗⚪ᩩᑁÜᵫbc12ḄឋÞß஺ABackColorBBackStyleCTextDCaptionᫀD11iVBi/Áᓫ«10ஹd⌕9ãbcḄᨬᜧᓄå8ᑣ_____ឋFalseᩭ´µ஺

7AControBoxBMinButtonCMaxButtonDEnabledᫀC11iVBi/Áᓫ«11ஹêëᢥ.Ḅ᪗⚪ᦻÓᵫ—ឋᩭ஺ATextBCaptionCNameDízîïᫀB11iVBi/Áᓫ«12ஹ᪗᪾Ḅð᪾ñឋḄ:Þß஺ABackColorBBackStlyeCBorderStyleDAutoSizeᫀC11iVBi/Áᓫ«13ஹd⌕°᪗᪾Ḅᜧóô\/ᡠḄᦻõ〉ÆÇឋḄ:Trueᩭ´µ஺AAutoSizeBAlignmentCAppearanceDVisibleᫀ:A

822iVBi/Áᓫ«14ஹ᪗᪾ᡠḄᑁÜñឋ:Þß஺ATextBízîïCCaptionDAlignment÷•C11iVBi/Áᓫ«15ஹ᪗᪾ᦻḄ1ù²úQ.ឋᩭÞß஺ATextBízîïCCaptionDAlignmentᫀD11iVBi/Áᓫ«16ஹÞßᦻÓḄÓcஹÓûஹᜧóஹᦔḄឋ{ATextBCaptionCNameDÎFont答案:等级:知识1八rVBi/Áᓫ«17ஹF$8ᙠ“wXýþᳮᘤ஻ᑡḄᦻA.basB.vbp

9C.frmD.ocxᫀD!1#$1%&'VB%&'/VBḄ*+,᛻18ஹ0123┯5ḄoAVisualBasic9:;<=ᓄ*+?ᐹBVisualBasicAᵨ+CDᐹᨵFGḄHIJKLMNCVisualBasic?ᐹOḄᡠᨵQRᐹᨵS$(Width)JZ$(Height)^ឋDVisualBasicQḄ`a^ឋbcᙠefghiᫀC!1#$1%&'VB%&'/VBḄ?+jᳮJ,᛻hi19ஹ0123┯5Ḅ஺Aᙠ?+nojᳮᘤbcᒹrst?+ᦻu^vw?+ḄᐸyᦻB0.BAS{᡽}~Ḅᦻ᪗ᙽᦻCᦻᒹrwuᐸQḄ^ឋDst?+<0rᨵt᪗ᙽᦻᫀA!2#$2%&'VB%&'/VBḄ?+jᳮJ,᛻hi20ஹ01D^vVisualBasicḄᦻ஺A.frmB.batC.vbgD.vbpᫀB!1#$1%&'VB%&'/VBḄ?+jᳮJ,᛻hi21ஹVisualBasicḄ*+ᑴ஺

10A<=ᓄB☢ᔣC☢ᔣD9:;ᫀ:D!1#$1%&'VB%&'/VBḄ*+,᛻22ஹ;VisualBasic{ᵨᡝḄ?+•t~{Ḅg~஺A?+1B1C?+DᫀA!1#$1%&'VB%&'/VBḄ?+jᳮJ,᛻hi23ஹVisualBasicᡂ,᛻ḄᜧᑖR<0¢£¤ᓫ⚗Ḅ1§¤ᓫ¨ᑮªAḄᡭH¬.A*®B:=C¯°D±²ᫀB!1#$1%&'VB%&'/VBḄ*+,᛻24ஹ´µḄ¶·ᙢ¹<0ᡭHḄ______஺A»ṹB^ឋC?+jᳮD0½3t⌱⚗RDᫀA

11!1#$1%&'VB%&'/VBḄ*+,᛻25ஹ?ᐹÀḄ஻;஻ᢥÂḄÃᵨoAef•tAᵨ+CBefstCᡭH?+jᳮDᡭHÄ⌱Ḅ»ṹᫀA!1#$1%&'VB%&'/VBḄ*+,᛻26ஹVisualBasicsᐳᨵhÇஹefJÈÉÊ°<ËfÌ☢hÇJ»ṹ*®Ḅ°s஺AhÇ°Bef°CÈ°D¶·°ᫀA!2#$2%&'VB%&'/VBḄ?+jᳮJ,᛻hi27ஹVisualBasicsᐳᨵhÇஹefJÈÉÊ°D<ËfÌ☢hÇJ»ṹ*®Ḅ°AhÇ°Bef°CÈ°D¶·°ᫀB!2#$2%&'VB%&'/VBḄ?+jᳮJ,᛻hi28ஹVisualBasicsᐳᨵhÇஹefJÈÉÊ°D<ËfÌ☢hÇÎ<Ëf»ṹ*®Ḅ°AhÇ°Bef°

12CÈ°D¶·°ᫀC!2#$2%&'VB%&'/VBḄ?+jᳮJ,᛻hi29ஹÏscÐÑstQḄ^ឋoACaptionBTextCNameDIndex答案:等级・♦知识#$1大VB%&'/VBḄஹ^ឋஹ¹ÖJ930ஹ×Ø01<0ᙠhÇgÙÚᙢ±᦮ᙠÜݽḄÞi஺A»ṹBßàCᑈhÇ☢D^ឋᫀB!1#$I%&':VB%&'/âᓫQhÇ31ஹ0123┯5ḄoA•t?+<0ᒹãÊḄᦻBVisualBasicAᵨ+Cäc0*å¹°᡻fçc0èé¹°᡻fC+CefᙠᑁëbcìᶇtDv9:;Aᵨ+CîïefgḄ᡻fðC<0Ds᪵ᫀC!2#$2%&'VB%&'/VBḄ?+jᳮJ,᛻hi32ஹò.ᑡóÃDcᔣ?+ôõḄo

13Aᓫµ஻?+஻¤ᓫḄ஻ôõ஻¬Bᓫµ?ᐹÀ½Ḅ஻ôõ஻ᢥÂCöµᙠ÷Ḅ¤ᓫ⌱ø஻ôõ஻¬Döµ?+nojᳮᘤᙠ÷Ḅ¤ᓫ⌱ø஻ôõ஻¬ᯠᙠòs!¤ᓫ⌱ø஻ôõ஻¬ᫀC!1#$1%&'VB%&'/VBḄ?+jᳮJ,᛻hi33ஹ⌕ûst¬ᢥÂhiᡂüᦔAhi^ឋḄþ{False஺AVisibleBEnabledCDefaultDCancelᫀB11VB/ᓫ"#$%34ஹᙠ*+,-./ᦻ1᪾3ᐸ567Texll஺7:ᙠ;<=>?Textl@Ḅᦻ1BCDE3FGHᵨḄJKATextl.ClearBTextl.Locked=TrueCTextl.VisibleFalseDTextl.EnabledoFalseᫀB22VB/ᓫ"#$%35ஹUVWX@┯ZḄ[oAᡭ]./^;ᦻ#_3`abcdᐭfg^;ᨵᐵḄ*+ஹ᪗klᙽᦻ#BnoVisualBasic;<_3Fᑖqno*+ᦻ#r^;ᦻ#CVisualBasicFᵨ;Dz#CUᵫᵨᡝ}~3CUᵫ`a}~

14ᫀc11VB/VBḄ^;ᳮ᛻$36ஹVisualBasic[.☢ᔣḄ;<$%J3᪀ᡂḄ⌕[.Aឋஹ"#wBឋஹz#wC*+ஹ"#;D"#ஹ;lᙽ答黑B等外1知嗝1VB/VBḄஹឋஹwz#>:37ஹVᑡ⚗[*+ḄwB[ឋANameBPrintCCaptionDEnabledᫀB22VB/VBḄஹឋஹwz#38ஹ⌕$¡¢ᢥ¤7¥¦§¨Ḅ¡¢¤3C©ឋᩭ$஺AStyleBBorderStyleCBackStyleDAppearanceᫀA22VB/ᓫ"#$%39ஹᵨ®¯°±ᵭ³´µ¶°±Ḅ·ᦪ[—ALtrimOBTrimO

15CLeftODInstr0ᫀ:C11VB/¾ᵨᑁÀ·ᦪ40ஹᵨ®Áᣵ°±Ã³´Ä¨Ḅ·ᦪ[஺ALtrimOBRtrim()CRightODMid()ᫀA11VB/¾ᵨᑁÀ·ᦪ41ஹCË̯°±ÃÍÎϵ¶°±Ḅ·ᦪ[AInstr()BMidOCLeftODRightOᫀB22VB/¾ᵨᑁÀ·ᦪ42ஹCËÌ°±ÐÑUÒÓÔ°±ÃḄ·ᦪ[AStringOBReplOCUcase0DLease0ᫀA11VB/¾ᵨᑁÀ·ᦪ

1643ஹËÌÖ×ᑏ°ÙÚᣚᡂᜧᑏ°ÙḄ·ᦪ[.AStr()BUpper()CUcase()DLease()ᫀC11VB/¾ᵨᑁÀ·ᦪ44ஹCÝÞ°±ASCIIṹàḄ·ᦪ[AChr()BFixOCVai()DAsc()ᫀD11VB/¾ᵨᑁÀ·ᦪ45ஹVBUáḄâã᝞åæᨵçèéêᐸᦪëìí3ᑣïð7AñòíBᦪëíC°±íDâ+íᫀD11VB/¾ãfâã46ஹVB@=ó±ôᑖ7õì3ᑖq[—Aóö=ó±ஹ÷ø=ó±ஹᐵ`=ó±ஹùE=ó±Bóö=ó±ஹúû=ó±ஹᐵ`=ó±ஹùE=ó±Cóö=ó±ஹ÷ø=ó±ஹüý=ó±ஹùE=ó±D÷ø=ó±ஹúû=ó±ஹùE=ó±ஹᐵ`=ó±

17ᫀA11VB/=ó±r⊤ÿ47ஹᙠVB᡻"A=18MOD4”AḄ஺A2B4C6D8!ᫀA#$1%&1'()VB'()/+,-.⊤048ஹATrue,EFalse,ᑣ"AandB஻?"AOrB"ḄᑖABCATrue,TrueBTrue,FalseCFalse,TrueDFalse,False!ᫀC#$1%&1'()VB'()/+,-.⊤049ஹᙠVB᡻"DimA,BAsString”AḄᦪKLMA᦮MᦪBOMᦪCP-MDQRM!ᫀ:D#$1%&1'()VB'()/TUᦪKLM50ஹᙠVB᡻"A=123B=Str$(A)஻BḄᦪKLM—A᦮MᦪBP⁚M

18COMᦪDP-M!ᫀC#$2%&2'()VB'()/TUᦪKLM51ஹᙠVB,᡻"A=123B=Len(Str$(A))”,BḄA3B4C123D0!ᫀB#$2%&2'()VB'()/_ᵨᑁbcᦪ52ஹᦪdᐵf3WxV10⊤iᡂklḄVB⊤0oA3<=x<10B3ீpxANDx(10Cx>=3ORx<10D3<=xAND<10!ᫀB#$1%&1'()VB'()/+,-.⊤053ஹInt(198.555*100+0.5)/100Ḅ஺A198B199.6C198.56D200!ᫀC#$2%&2'()VB'()/+,-.⊤0

1954ஹx.☢klḄzBoAx+y=30By=*r*rCy=x+30D3y=x!ᫀC#$1%&1'()VB'()/+,-.⊤055ஹ|}~Rz1,☢klḄzBAx=ly=lz=lBx=Ly=Lz=lCx=y=z=lDxyz=l!ᫀA#$1%&1'()VB'()/᪀56ஹQᵨifḄcᦪB_஺ADateBDate$CTimeDTimer答案等级知识%&1VB'()/_ᵨᑁbcᦪ57ஹ☢BᔠḄR—Ax_yzB123abcCintegerDX-Y

20!ᫀA#$1%&1'()VB'()/ᑏᑣ.58ஹVB,Mid("A2B4",2,1)ḄB஺A2BB0C2D4!ᫀC#$2%&2'()VB'()/_ᵨᑁbcᦪ59ஹᙠVBᔠḄ_B஺A'xxx*B2/3C5eDfalse!ᫀD#$1%&1'()VB'()/_¢R60ஹcᦪInt(Rnd*80)+10Bᙠ¤ᑁḄ᦮ᦪ஺A[10,90]B[10,89]C[11,90]D[11,89]!ᫀ:B#$2%&2'()VB'()/_ᵨᑁbcᦪ61ஹ⌕¨©Cª&256P-ḄªP-«Rstr,x.ᑡklḄBAdimstrasstringBdimstrasstring(256)

21Cdimstrasstring[256]Ddimstrasstring*256!ᫀD#$1%&I'()VB'()/_¢R62ஹ⊤02*3°2+2*8/4+3஻2ḄB.A64B31C49D22!ᫀB#$2%&2'()VB'()/+,-.⊤063ஹᑡB®¯M_஺A“07/03/11”B02/02/11C#03/01/19#D(2/11/02)!ᫀ•C#$1%&1'()VB'()/_¢R64>VisualBasic³´ᙠᑡµC¶ᦪKLMAP-«LMB®¯LMC·¸LMDᢣ┐LM!ᫀD#$1%&1'()VB'()/TUᦪKLM

2265ஹ»R¼³klḄBoA½¾BP¿Àᜮ³ÂBᦪPᡈᐸÅP-B³ÂBVBḄÆᶇPCQÈᒹÊP¿ஹᦪPஹᑜÌ?᪗)-ÎD³ÂÏÐ255P-!ᫀC#$1%&1'()VB'()/_¢R66ஹÈRB³-ᔠVisualBasicḄÑḄ஺AAbe901BmnuOpen234Cprice答蔡B等绦1知讽%&1-VB'()/ᑏᑣ.67ஹ50WXW200ᑣ}RYz1000ḄklḄIfᑨBAIf50WXW200theny=1000BIfx<=200andx>=50theny=1000CIfx<=200orx>=50theny=1000DIfx>=50,x<=200theny=1000!ᫀB#$2%&2'()VB'()/+,-.⊤068Õa=2,b=3,c=4,ᑡ⊤0aுbandb>cornota>cḄBATrueBFalseCyesDno

23!ᫀA#$2%&2'()VB'()/+,-.⊤069ஹᑡ×klḄP-«_ḄB—A#ABC஻B$ABC$C'ABC'D"ABC"!ᫀD#$1%&1'()VB'()/_¢R70ஹ᡻ᑡØṹᑖAÚᐭ12?89,ÚÜÝBPrivateSubForm_Click()a=InputBox("D")b=InputBox("E")Printa+bEndSubA101BDEI289CDED1289!ᫀD#$2%&2'()VB'()/_ᵨᑁbcᦪ71ஹ⊤06+10Mod4*2+1ḄB—A9B11C1D3!ᫀA#$2%&2'()VB'()/+,-.⊤0

2472ஹáᦪMâᣚP-«M◤⌕åᵨᑡµC¶cᦪ—AVai()BStr()CAsc()DChr()!ᫀB#$1%&1'()VB'()/_ᵨᑁbcᦪ73ஹᦪdæsin25°ᑏᡂVB⊤0B஺Asin25BSin(25)CSin(25*3.14/180)DSin(25°)!ᫀC#$2%&2'()VB'()/_ᵨᑁbcᦪ74ஹÕxBCkOᦪ»xḄç3èᦪéêëᐭḄ⊤0BCA0.01*Int(x+0.005)B0.01*Int(100*(x+0.005))C0.01*Int(100*(x+0.05))D0.01*Int(x+0.05)!ᫀB#$2%&2'()VB'()/+,-.⊤075ஹcᦪLeft("Hell஺”,2)Ḅ஺AHeBelCloDTrue

25!ᫀA#$1%&1'()VB'()/_ᵨᑁbcᦪ76ஹcᦪInt(Abs(99-100)/2)Ḅ஺A1B0CTD"0஻!ᫀB#$2%&2'()VB'()/_ᵨᑁbcᦪ77ஹȨ©┯îḄBoAConstvarl=123BDimvar2='ABC>CDimvar3DStaticvar4AsInteger!ᫀB#$1%&1'()VB'()/ᑏᑣ.78ஹïa=10,b=5>c=l,᡻Printa>b>c,ðñòiḄBATrueBFalseC1DÜ┯óô!ᫀB#$2%&2'()VB'()/+,-.⊤079ஹᑡ⌱⚗³BP-«_ḄB஺A"ab"

26B஻÷ø஻C"2006*D1235!ᫀD#$1%&1'()VB'()/_¢R80ஹÈ+,-+,ùᐜ$ᨬüḄBA+BCC>=D*!ᫀD#$1%&1'()VB'()/+,-.⊤081ஹᑡᐵP-«ýþ+,஻+஻?ḄÿḄoA஻&”⌕ᙳB"+஻ᦪ!"#$ᦪ%ᣚᡂ()*C஻&",஻+஻!⌕-.D0ᙠ23456ᵨ஻&஻ᑣᙠ234,9:;ᨵ=>?@AᫀDCD2FG2HIJVBHIJ/MNO⊤QR82ஹUᑡ⊤QRWḄ6ḄoA19\3B19/3CInt(19/3)D19mod13AᫀBCD1FG1HIJVBHIJ/MNO⊤QR

2783ஹUᑡᔠeḄfghḄ஺AiNumber_l=45B(4+5)*3.5=numCLabel1.caption=timeDnum=(4+5)*3.5AᫀBCD2FG2HIJVBHIJ/{|}᪀84ஹUᑡ⊤QRWFalseḄ,AInt(14/3)=4B((1+2)<=3)and(4+5>7)CInt(RndO*3)<=3D"abc">"bc"AᫀDCD2FG2HIJVBHIJ/MNO⊤QR85ஹVBW">)*ᩭḄMNᨵ+&,஻123"+45}A168B12345C"123”D45AᫀACD2FG2HIJVBHIJ/MNO⊤QR86ஹUᦻ᪾ChangeḄ#$0Aᦻ᪾ᜫᯖJBᦻ᪾ᯖJC¡¢ᦻ᪾ḄᯖJDᦋ2ᦻ᪾Ḅᑁ¥

28AᫀDCD1FG1HIJVBHIJ/¦Ḅ§HI87ஹ¨©ªᨵ,>ᦻ᪾¦4«TxtTime®,>¯°ᘤ¦4«Timerl஺⌕²,³´ᙠᦻ᪾Wµ¶=·¸¹Ḅ°:º|Privatesubtimerl?TxtTime.text=timeEndSubᙠ?ᜐ;ÁᐭḄᑁ¥஺AEnabledBVisibleCIntervalDTimerAᫀDCD2FG2HIJVBHIJ/¦Ḅ§HI88ஹÃÄ᪾ÅImageÆᨵ=>ÇឋÉÊËÌ᦮ÃÎḄᜧÐ〉¸ÃÄ᪾ḄÒÓÔ>ÇឋAAutosizeBStretchCAutoRedrawDAppearanceAᫀBCD1FG1HIJVBHIJ/ÃΦ89ஹ¡¨©ªᨵ•>ᑡ⊤᪾¦Listl,ØᐸWÚᨵ0Ûᑡ⊤஺ᑣU⊤¶¸¹Ü⌱WḄᑡ⊤⚗ᑁ¥ḄAListl.ListBLstl.ListindexCLstl.IndexDListl.TextAᫀDCD2FG2HIJVBHIJ/ᑡ⊤᪾ßᔠ᪾

2990ஹ¡ßᔠ᪾ComboàWᨵ3>⚗áᑣUᑤ◀ᨬ5=⚗ḄghACombo1.RemoveitemTextBCombo1.Removeitem2CCombo1.Removeitem3DCombo1.RemoveitemCombo1.ListcountAᫀBCD2FG2HIJVBHIJ/ᑡ⊤᪾ßᔠ᪾91ஹåæ¦ᦪßḄÇឋÉçᑖ¦ᦪßWḄéᐗë஺ANameBTitleCCaptionDIndexAᫀDCD2FG2HIJVBHIJ/¦ᦪß92ஹæºᢣ°ᡠ᡻ïḄº|ðṹ஺AMïº|Bò;C¡¢ÇឋD6ᵨ¦AᫀBCD1FG1HIJVBHIJ/VBḄóôஹõឋஹöe93ஹᑡ⊤᪾WḄᑡ⊤ᑁ¥åæÇឋ¡¢஺AColumnsBIJstCListindex

30DListCountAᫀ:BCD2FG2HIJVBHIJ/ᑡ⊤᪾ßᔠ᪾94ஹÌᵨᑡ⊤᪾¦ḄöeÉù◀ᑡ⊤᪾WḄᡠᨵᑡ⊤⚗஺ACisBRemoveitemCClearDRemoveAᫀCCD2FG2HIJVBHIJ/ᑡ⊤᪾ßᔠ᪾95ஹ᡻ïú¨©;ᵨº|°•Aûᡭý=>¨©ᐸþḄ¨©!ÿᐵBᐕᡭCᡭ•ᐸḄ◚Dᙠ!ᡭ"ᫀB$%3()3*+,VB*+,//96ஹ34ᐵ56ᵨ89Ḅ:;<=>Ḅ?_____0ABCᔣE8FGHIJᡂ•LᙽBBCᔣE8FGNJᡂLᙽCOFGᓽJᡂE8ᦻRD!STUVḄWXYZ☢"ᫀB$%2()2*+,VB*+,//97ஹ34⊤;=>Ḅ?oALoadcdeShowijḄk!l

31BUnloadcdeHideijḄk!sᐰlCLoadcdeUnloadḄk!ᐗᐰlvD3wxyzj{=>"ᫀC$%2()2*+,VB*+,//98ஹᙠᦻ}᪾ḄឋXTrueḄ4ScrollBarsឋᦻ}᪾<ᩩ஺ALockedBAlignmentCMultilinesDEnabeld"ᫀC$%2()2*+,VB*+,/ᓫR99ஹRSឋXTrue,¡¢᦮ᜧ¥3〉6R஺A§᪾ஹAutoSizeBᱏ᪾ஹAutoSizeC§᪾ஹStretchDᱏ᪾ஹStretch答案C:等级3知识••()3L八VB*+,/¡R100ஹ®¯ᦪSᢣ²Ḅ¡³´µḄPictureឋ஺ALoadImageBImageLoadCPictureLoadDLoadPicture"ᫀD$%1()1*+,VB*+,/¡R

3210kX¸ᱏ᪾¹§᪾Ḅᜧ¥〉6ᱏḄᜧ¥4☢=>Ḅ?AAutoSize=TrueStretch=TrueBAutoSize=TrueStretch=FalseCAutoSize=FalseStretch=TrueDAutoSize=FalseStretch=False"ᫀB$%3()3*+,VB*+,/¡R102ஹCis¼◀ᡈᱏ᪾<ḄᑁÀ஺APictureឋḄÁÂᫀBᙠÃḄRC89ÄÅÆJḄᦻÇD3wA-CᐰÉ"ᫀC$%2()2*+,VB*+,/¡R103ஹ᝞ËÌᙠᱏ᪾wÍᦻÇᑣoA!ᵨᱏÏÐÑRGᐭ⌕ÍḄᦻÇB3ᵨPrintijᙠᱏ᪾Ô.ÍᦻÇC{3Ö×ᙠᱏ᪾wÍᦻÇD3wzj{"ᫀB$%1()1*+,VB*+,/¡R104ஹᐵ5ᱏ᪾¹ᦻ}᪾Ḅzj=>Ḅ?஺Aᱏ᪾<Ù3ᨵᦻ}Û3ᨵ¡Üᦻ}᪾

33D3®Cisij¼◀ᱏ᪾eᦻ}᪾<ḄᑁÀ"ᫀ:A$%1()1*+,VB*+,/¡R105ஹ4ᑡᐵ5§᪾RḄzj{=>Ḅ?஺A{3WXÀᘤᵨB{äᢝ¡ijCæᨵçRD!ᵨ5èé§"ᫀC$%1()1*+,VB*+,/RḄê}*+106ஹÔ.ᑡᐵ5PictureBoxReImageRḄzj{=>Ḅ?APictureBox3WXRÀᘤìíîImageᓰᵨðñòóBImage!¢᦮ᜧ¥3〉6ÝᐭḄᱏCPictureBox◀ᐹᨵImageḄᡠᨵᱯឋ᜜ø!WXÀᘤDPictureBox!ᱏ¢᦮ᜧ¥3〉6ùḄᜧ¥"ᫀD$%2()2*+,VB*+,/¡R107ஹÞᓫú¸ᓫ⌱ᢥýR4ᑡzj=>Ḅ?஺A᡻ÅClickçRB᡻ÅGetFocusC᡻Click,᡻GetFocusDᐹ᡻⌕ᙠᡈឋ!"#ᫀC%&1)*1+,-VB+,-/ᓫ⌱ᢥ456⌱᪾108ஹ6⌱᪾ḄValueឋ=1>?⊤A.A6⌱᪾DE⌱

34B6⌱᪾E⌱C6⌱᪾ᑁᨵᮞ⁐ḄJD:6⌱᪾LMᨵ┯O#ᫀB%&1)*1+,-VB+,-/ᓫ⌱ᢥ456⌱᪾109ஹ6⌱᪾QRSᔲE⌱?Uᵫᐸ..ឋᑨY஺ACheckedBValueCEnabledDSelected#ᫀB%&1)*1+,-VB+,-/ᓫ⌱ᢥ456⌱᪾110ஹ᪾aᑁḄᡠᨵcS஺Ad᪾aefghஹiAஹjᜫ5lmBnd᪾aefghஹijᜫ5lmCod᪾aefghDod᪾a•fiA5jᜫ答案等级知识)*1VB+,-/᪾aFramec111ஹsᑡc?uᨵCaptionឋḄS—A᪾aBᑡ⊤᪾C6⌱᪾Dᓫ⌱ᢥ4#ᫀB%&2)*2+,-VB+,-/cḄyz+,

35112ஹ{snᐕ}ᵨᡝᙠ>ᐭᦻḄcSeAᦻz᪾Bsᔠ᪾Cᓫᔠ᪾Dsᑡ⊤᪾答案D:等级3:知识)*3rAVB+,-/cḄyz+,113ஹ>cḄ>◞S0A{B{ᑖC{D{>#ᫀA%&1)*1+,-VB+,-/>c114ஹ6⌱᪾ᡈᓫ⌱ᢥ4Ḅ᝱Uឋᩭ!ᡈ஺AValueBCheckedCSelectedDCaption#ᫀA%&2)*2+,-VB+,-/ᓫ⌱ᢥ456⌱᪾115ஹ⌕!">ᘤcḄ">>?Uឋᩭ!஺AIntervalBValueCEnabled

36DText#ᫀA%&1)*1+,-VB+,-/>c116ஹ⌕ᨚ>ᐵ¨">ᘤ?U!_____ឋ=Falseᩭª«஺AVisibleBEnabledCIntervalDTimer#ᫀB%&1)*1+,-VB+,-/>c117ஹ®᪾ᡈᱏ᪾iAḄ°?±QRḄឋ²³"஺APictureBImageCDownpictureDIcon#ᫀA%&1)*1+,-VB+,-/°c118ஹ!h·>¸¹ᵨ>cᩭcᑴh·»*஺AMoveBIntervalCtimerDGotfocus答案:等级:知识I)*1八VB+,-/°c119ஹ⌕¾+ᑡ⊤⚗ḄᦪÁ?Uឋᩭª«஺AList

37BListTndexCListCountDText#ᫀC%&1)*1+,-VB+,-/ᑡ⊤᪾5ᔠ᪾120ஹ⌕ᔣᑡ⊤᪾ÄÅᑡ⊤⚗?U¹ᵨḄÆÇSeoAAddBRemoveCClearDAddItcm#ᫀD%&1)*1+,-VB+,-/ᑡ⊤᪾5ᔠ᪾121ஹ⌕É◀ᑡ⊤᪾ḄᑁË?U¹ᵨÆÇᩭª«஺AAddBRemoveCClearDAddItem#ᫀC%&1)*1+,-VB+,-/ᑡ⊤᪾5ᔠ᪾122ஹᔠ᪾ḄÌÍUឋᩭ!஺ABackStyleBBorderStyleCStyleDSorted#ᫀC%&1)*1+,-VB+,-/ᑡ⊤᪾5ᔠ᪾

38123ஹᎷ"ÐÑÒeÓ=CommandlḄÔÕᢥ4ᦪ?ᑣ{s×Ç┯OḄS—AᦪØÔÕᢥ4ḄÓÙ(ÓÙឋ)ᙳ=CommandlBᦪØÔÕᢥ4Ḅ᪗⚪(Captionឋ)ß•᪵CᦪᡠᨵÔÕᢥ4U{¹ᵨáeDᵨÓÙConimandl(s᪗)U{ᦪḄØÔÕᢥ4#ᫀB%&2)*2+,-VB+,-/cᦪ124ஹ!ᨵ᝞sᵨPublicSubFun(a()AsInteger,xAsInteger)Fori=lTo5x=x+a(i)NextEndSubᙠæç·eÓÙ=Text1Ḅᦻz᪾5eÓÙ=CommandlḄÔÕᢥ4஺ᯠéêᑏ᝞sḄ:PrivateSubCommandl_Click()Dimarr(5)AsInteger,nAsintegerFori=lTo5arr(i)=i+iNextCallFun(arr,n)Textl.Text=Str(n)EndSubé?ᓫìÔÕᢥ4?ᑣᙠᦻz᪾çiAḄSoA30B25C20D15#ᫀA%&3)*3+,-VB+í-/îᵨᫀï125ஹðñDims(lto5)asSingle"òḄᦪᨵᐗô஺A5B6C1

39D15#ᫀA%&1)*1+,-VB+,-/ᦪḄ"ò5õᵨ126ஹðñDims(lto5)asSingle"òḄᦪSö÷Ḅᐗø஺A᦮÷Búû÷Cüý÷Dᓫþ*ª÷#ᫀD%&1)*1+,-VB+,-/ᦪḄ"ò5õᵨ127ஹðñDims(5)asSingle"òḄᦪÿᨵᐗ஺A5B6C2D10ᫀB11VB/ᦪḄ"#$%ᵨ128()*Dims(lto5)asDouble"#Ḅᦪ789Ḅᐗ஺A᦮9B;<9C=>9D?@A9答案:等级:知识I1八VB/ᦪḄ"#$%ᵨ129ஹ)*Dims(lto5)asCurrency"#Ḅᦪ789Ḅᐗ஺A᦮9

40BHI9C=>9Dᓫ@A9ᫀB11VB/ᦪḄ"#$%ᵨ130ஹ)*Dims(lto5)asBoolean"#Ḅᦪ789Ḅᐗ஺A᦮9B;<9C=>9Dᓫ@A9LM.C311VB/ᦪḄ"#$%ᵨ131()*Dimbirthday(1to5)asDate"#Ḅᦪ789Ḅᐗ஺A᦮9B;<9C=>9Dᓫ@A9ᫀB11VB/ᦪḄ"#$%ᵨ132ஹ)*Dims(1to5)asString"#Ḅᦪ789Ḅᐗ஺A᦮9B;<9C=>9DST9ᫀD11VB/ᦪḄ"#$%ᵨ

41133ஹ)*Dima(5)"#Ḅᦪ789Ḅᐗ஺A᦮9BM89C=>9DUV9ᫀD11VB/ᦪḄ"#$%ᵨ134ஹ)*OptionBasen"#ᦪZ᪗Z\]^n_`7஺A0B1C஺ᡈ1Dbc᦮ᦪᫀC11VB/ᦪḄ"#$%ᵨ135ஹᦪZ᪗d\$Z\_`7befgᡈfg⊤ij஺A᦮9BH<9C=>9DST9ᫀA11VBl/ᦪḄᭆn136ஹ)*Dimaa(-1to1,—2to1)"#rsḄtuᦪ஺A2v2ᑡB1v2ᑡC3v4ᑡ

42D1v1ᑡᫀ:C11VB/ᦪḄ"#$%ᵨ137ஹ)*Dimaa(-lto1,-2to1)"#Ḅtuᦪᐳᨵᐗ஺A2B12C4D6ᫀB22VB/ᦪḄ"#$%ᵨ138ஹ)*Dimaa(-lto1,-2toD"#ḄtuᦪZ᪗Z\7.As1$s2B—1C-2D2ᫀA11VB/ᦪḄ"#$%ᵨ139ஹ᝞|Dima(-1to2),ᑣ~ᦪLBound(a)Ḅ7஺As1$s2B-1C-2D2ᫀB22VB/ᦪḄ"#$%ᵨ140ஹ᝞|Dima(-1to2),ᑣ~ᦪUBound(a)Ḅ7஺As1$s2

43B-1C-2D2ᫀD11VB/ᦪḄ"#$%ᵨ141ஹ᪷◤⌕ᵨ._`"᝱ᦪḄᜧ஺AReDimBDimCStaticDPublicᫀA11VB/☟᝱ᦪ᝱ᦪ142ஹᵨReDim_`ᦋU᝱ᦪḄ—AᜧB89CuᦪDZ᪗ᫀB22VB/☟᝱ᦪ᝱ᦪ143ஹPrivateSubCommandl_Click()DimaaAsVariantaa=Array(1,2,3,4)EndSubd☢v^aa(l)Ḅ7oA1$2B1C2D3

44ᫀc22VB/ᦪḄ¡¢144ஹPrivateSubCommandl_Click()DimaaAsIntegeraa=Array(2,4,6,8)EndSubd☢v^aa(l)Ḅ7—A4B1C2D6ᫀA22VB/ᦪḄ¡¢145ஹPrivateSubCommand1_C1ick()Dimaaaa=Array(s^s^t^¤)Fori=0to3aa(i)=aa(i)+“ᑖ©"NextiEndSubd☢v^aaফḄ7—Asᑖ©Btᑖ©C®ᑖ©D¤ᑖ©ᫀC22VB/ᦪ¯ᵨ°±146ஹPrivateSubCommandl_Click()DimaaaatArray]s,.,t^¤)Fori=0to3aa(i)=aa(i)+“³´”NextiEndSubd☢v^aa(l)Ḅ7

45As³´Bt³´C®³´D¤³´ᫀB22VB/ᦪ¯ᵨ°±147ஹPrivateSubCommand1_C1ick()Dimaaaa=Array(s^s^t^¤)Fori=0to3aa(i)=aa(i)+“”NextiEndSubd☢v^aa(l)Ḅ7—AsBtC®D¤ᫀB11VB/ᦪ¯ᵨ°±148^PrivateSubCommand1ClickODimaa(4)asIntegerFori=lto4aa(i)=aa(i)+2NextiEndSubd☢v^aa(l)Ḅ7—A4B1C2D0ᫀC11VB/ᦪ¯ᵨ°±

46149ஹPrivateSubCommand1_C1ick()Dimb(4)asIntegerFori=0to3b(i)=b(i)+2NextiEndSubd☢v^b(l)Ḅ7______oA4B1C0D2ᫀ:D11VB/ᦪ¯ᵨ°±150^PrivateSubCommand1_C1ick()Dimw(4)asIntegerFori=0to3w(i)=w(i)+4NextiEndSubd☢v^\v(DḄ7oA4B1C0D2ᫀA22VB/ᦪ¯ᵨ°±151ஹPrivateSubCommand1ClickODimt(4)asIntegerFori=0to3t(i)=iNextiEndSubd☢v^t(l)Ḅ7஺A4B1

47C0D2ᫀB11VB/ᦪ¯ᵨ°±152ஹPrivateSubCommand1_C1ick()Dimt(4)asIntegerFori=lto4t(i)=i+1NextiEndSubd☢v^t(l)Ḅ7,oA4B1C0D2ᫀ:D22VB/ᦪ¯ᵨ°±153ஹPrivateSubCommand1_C1ick()Dimb(4)asIntegerFori=lto4b(i)=i+1NextiEndSubd☢v^b(2)Ḅ7oA3B1C0D2ᫀA11VB/ᦪ¯ᵨ°±154ஹPrivateSubCommand1Click0Dimw(4)asintegerDimy()asinteger

48Fori=0to4w(i)=i+2Nextiy=wEndSubd☢v^y(l)Ḅ7oA0B1C3D2ᫀC22VB/ᦪḄ¡¢155>PrivateSubCommand1_C1ick()Dimw(4)asintegerDimy()asintegerFori=0to4w(i)=2*iNextiy=wEndSubd☢v^y(DḄ7஺A0B1C3D2ᫀD22VB/ᦪ¯ᵨ°±156ஹPrivateSubCommand1Click0Dimw(4)asintegerDimy()asintegerFori=0to4w(i)=3*iNextiy=wEndSubd☢v^y(2)Ḅ7஺A0

49B6C3D2ᫀB22VB/ᦪḄ¡¢157ஹPrivateSubCommand1ClickODimw(4)asintegerDimy()asintegerFori=0to4w(i)=w(i)+3Nextiy=wEndSubd☢v^y(l)Ḅ7______oA0B6C3D2ᫀC22VB/ᦪ¯ᵨ°±158ஹᙠpicture1d¼½ᦪW(i)Ḅᵨ)*_`A¿஺APictruel.PrintW(i)BPictruel=W(i)CPictruel.Picture=W(i)DPrintW(i)ᫀA22VB/ᦪḄ¡¢159ஹÀÁᦪÂÃ-ᐗḄIndex7sA0B1

50CMD2ᫀA11VB/ÀÁᦪ160ஹÄÀÁḄIndexÅ7஺A0B1CMD2ᫀC22VB/ÀÁḄ161ஹ_`ÆÇÈᦋÀÁᦪÂÀÁḄᦋUᐸᙠᦪÂḄÊ஺AFontBËCaptionCNameDIndexᫀD22VB/ÀÁᦪ162ஹᙠv]ᵨ—ߟ)*_`ÍÎÀÁᦪᐗ஺AAddBNewCIndexDLoadᫀD33VB/ÀÁᦪ163ஹᙠv]ᵨ)*_`ᑤ◀ÀÁᦪᐗ஺

51AUnLoadBDeleteCIndexDLoadᫀA33VB/ÀÁᦪ164^PrivateSubCommand1_C1ick(1ndexAsInteger)SelectCaseIndexCase0Label1.BackColor=VbRedCase1Label1.BackColor=VbGreenCase2Label1.BackColor=VbBlueEndSelectEndSubv]ᓫÒÃtÓÔᢥÖLabel1Ḅ×Ø⁐7⁐஺AÚBËÛCÜDÝᫀB22VB/ÀÁᦪ165ஹPrivateSubCommand1_C1ick(IndexAsInteger)SelectCaseIndexCase0Textl.BackColor=VbRedCase1Textl.BackColor=VbGreenCase2Textl.BackColor=VbBlueEndSelectEndSubv]ᓫÒîÓÔᢥÖText1Ḅ×Ø⁐7⁐஺AÚBÛ

52CÜDÝ答案等级C识22VB/ÀÁᦪ166>PrivateSubCommand1_C1ick()Dimiasinteger,jasintegerDimb(5,5)asintegerFori=lto3Forj=lto3b(i,j)=i*2+jPrintb(i,j)NextjPrintNextiEndSubd☢vḄÃ2vÃ2ᑡḄᦪ7sA6B5C4D3ᫀB33VB/ᦪ¯ᵨ°±167^PrivateSubCommand1_C1ick()Dimiasinteger,jasintegerDimk(5,5)asintegerFori=lto3Forj=lto3k(i,j)=i*2+jPrintk(i,j)NextjPrintNextiEndSubd☢vḄk(2,3)Ḅ7—A6B7C8D9

53ᫀB33VB/ᦪ¯ᵨ°±168ஹàVḄ᪗⚪ᩩãäᑁæᵫàVèéḄêឋì"஺ACaptionBËTextCBackColorDBackStyle答案A:等级1:知识1八rVB/íᓫÀÁîï169ஹv]^ðñò᡻vàVḄôÁ஺ALoadBClickCUnloadDGotFocusᫀA11VB/íᓫÀÁîï170ஹ`ZèUgᡈfgḄõö)*Â┯øḄ7஺AdimdlBdimd2="123"CConstd3=123DStaticd4%ᫀB11VB/úᑏüᑣýþjÿ171ஹ⌕ᡈᦻ᪾Ḅᦻᦻ᪾Ḅឋᩭ஺ACaption

54B(&')CTextDName/ᫀC121341567VB567/:ᓫ<=>172ஹ@<=ᙠBCDḄEḄឋFAWidthᡈHeightBWidthLHeightCTopᡈLeftDTopLLeft/ᫀD122342567VB567/:ᓫ<=>173ஹPᑡRSTUVWVBXY&ḄFAbc2BfOaC26abcX7答案••等级:知识341士V'B567/bYcXY174ஹP☢fgDimA(-3To5)AsIntegermḄᦪoḄᐗqrᦪFA6B7C8D9/ᫀD121341567VB567/ᦪoḄmLuᵨ

55175ஹP☢fgDimarr(3To5,-2To2)mḄᦪoḄᐗqrᦪFA:20氏2C524答然C等的2知山342一•VB567/ᦪoḄmLuᵨ176ஹᵨP☢fgmḄᦪoḄᐗqrᦪFxOptionBase0Dima(5)AsIntegerA5B6C7D8/ᫀB122342567VB567/ᦪoḄmLuᵨ177ஹP☢fgz@ḄFoADimaAsVarianta=Array(1,2,3,4,5)BDima(10)AsIntegera=Array(1,2,3,4,5)CDima%(10)a(l)=஻ABCDE"DDima(3),b(3)AsIntegera(0)=0a(l)=1a(2)=2b=a/ᫀA122342567VB567/ᦪoḄmLuᵨ

56178ஹPublicconters(2to14)AsIntegerz@ḄF஺AmxrᵨXYconfers,ᐸF2ᑮ14Ḅxr᦮ᦪBmxrᵨᦪoconters,ᦪoᑁ14r᦮ᦪCm•rᵨᦪoconters,ᦪoᑁ13r᦮ᦪDmxrᵨᦪoconfers,ᦪoᑁ12r᦮ᦪ/ᫀC121341567VB567/ᦪoḄmLuᵨ179ஹᙠBCDxrᢥ(ᐸNameឋWConimandl),ᯠᑏ᝞Pṹ:PrivateSubCommand1_C1ick()DimArrl(10),arr2(10)AsIntegern=3Fori=1To5Arrl(i)=iarr2(n)=2*n+iNextiPrintarr2(n);Arrl(n)EndSub¦§¨©ᓫªᢥ«¬®FOA113B311C133D313/ᫀA123343567VB567/ᦪo¯ᵨ°±180ஹᙠBCDxrᢥ(ᐸNameឋWCommand])ᯠᑏ᝞Pṹ:OptionBase1PrivateSubCommandl_Click()Dima(10),p(3)AsIntegerk=5Fori=1To10a(i)=iNextiFori=1To3p(i)=a(i*i)NextiFori=1To3k=k+p(i)*2NextiEndSub

57¦§¨©ᓫªᢥ«¬kḄFOA35B28C33D37/ᫀC123343567VB567/ᦪo¯ᵨ°±181ஹᙠBCDxrᢥ(ᐸNameឋWConimandl),ᯠᑏ᝞Pṹ:OptionBase1PrivateSubCommand1_Click()Dimaa=Array(1,2,3,4)j=lFori=4To1Step-1s=s+a(i)*jj=j*10NextiEndSub¨©D☢Ḅ¦§ᓫªᢥ«¬sḄF.஺A4321B12C34D1234/ᫀD123343567VB567/ᦪo¯ᵨ°±182ஹᙠBCDµrᢥ(ᐸNameឋWCommandl),ᯠᑏ᝞Pṹ:OptionBase1PrivateSubCommand1ClickODimArr(3)AsIntegerFori=1To3Forj=1To3Arr(j)=Arr(i)+1NextjNextiEndSub¦§¨©ᓫªᢥ«¬Arr(3)ḄF஺A7

58B6C5D4/ᫀC123343567VB567/ᦪo¯ᵨ°±183ஹP¦§«¬Ḅ®FxoOptionBase1PrivateSubCommandl_Click()Dima%(3,3)Fori=1To3Forj=1To3Ifj>1Andi>1Thena(i,j)=a(a(i-1,j-1),a(i,j-1))+1Elsea(i,j)=i*jEndIfPrinta(i,j);஻“¸NextjPrintNextiEndSubA123231323B123123123C123246369D111222333/ᫀA12334:3567VB567/ᦪo¯ᵨ°±184ஹP☢¦§Ḅ¹UF>º1ᑮ50ḄᏔᦪL¼Ꮤᦪ½¾L¿ÀÁ¬ᩭ஺Â⌱Äz@/ᫀ஺PrivateSubForm_Click()DimSUMIAsInteger,SUM2AsInteger,TAsIntegerSUMI=0:SUM2=0ForI=2To50Step2SUMI=

59SUM2=SUM2+I*INextTPrint”ᏔᦪL=஻;SUMIPrint஻Ꮤᦪ½¾LÈ஻;SUM2EndSubAIB1*1CSUM1+IDSUM2+I*I/ᫀC123343567VB567/<ᑴ᪀¯ᵨ¦§°±185ஹP☢¦§Ḅ¹UFËᐭnͺÎ1+1/2!+1/3!+……+l/n!Ḅ஺Â⌱Äz@/ᫀ஺PrivateSubForm_Click()DimSUMAsSingle,ITEMAsSingleDimNNAsStringDimIAsInteger,JAsInteger,NAsIntegerNN=InputBox("«ᐭÍḄ⚗ᦪn")N=VAL(nn)SUM=1ForI=2ToNITEM=1ForJ=1ToIITEM=_NextJSUM=SUM+l/ITEMNextIPrint஻SUM=஻¸SUMEndSubAITEM*JB1TEM+JCJ*JDITEM*ITEM/ᫀA123343567VB567/<ᑴ᪀¯ᵨ¦§°±186ஹᙠBCDᨵxr&'WcommandlḄᢥᯠᑏ᝞PÔ=¦஺Âᙠᜐ⌱Äz@/ᫀ஺PrivateSubCommandl_Click()DimaAsInteger,sAsIntegera=8:s=1Do

60s=s+a:a=a-1LoopWhilea<=0EndSub¦§¨©ᓫªᢥBCDÀÁsḄW,aḄW7஺A7B34C9D×ØÙ/ᫀC123343567VB567/<ᑴ᪀¯ᵨ¦§°±187ஹPÚVisualBasicᔠÜḄᦪoᐗqF—Ax8Bx[8]Cs(0)Dv.8/ᫀC121341567VB567/ᦪoḄᭆà188ஹᨵᢥCommand1ḄᓫªÔ=¦ṹ᝞P:PrivateSubCommandlClick()Dima(3,3)AsIntegerFori=lTo3Forj=lTo3a(i,j)=i*j+iNextjNextiSUHFOFori=lTo3Sum=Sum+a(i,4-i)NextiEndSub¨©¦§ᓫªᢥ«¬SumḄ®FoA20B7C16D17

61/ᫀc123343567VB567/ᦪo¯ᵨ°±189ஹᙠBCDáâ᝞Pᢥᯠᑏ᝞PÔ=¦:PrivateSubCommand1_Click()Dima(10)AsIntegerDimp(3)AsIntegerk=5Fori=lTo10a(i)=iNextiFori=lTo3p(i)=a(i*i)NextiFori=lTo3k=k+pপ*2NextiEndSub¨©¦§ᓫªᢥ«¬kḄ®FOA35B33C31D29/ᫀB123343567VB567/ᦪo¯ᵨ°±190ஹᨵ᝞P¦§:OptionBase0PrivateSubForm_Click()DimaDimiAsIntegeraÈArray஺2,3,4,5,6,7,8,9)Fori=0To3Printa(5-i);NextiEndSub¦§¨©ᓫªBCᑣᙠBCDÀÁḄF—A4321B5432C6543D7654

62/ᫀc123343567VB567/ᦪo¯ᵨ°±191ஹᙠBCDxr&'WTextlḄᦻ᪾Lxr&'WCommandlḄᢥᯠᑏ᝞PÔ=¦:PrivateSubCommand1_C1ick()Dimarrayl(10,10)AsIntegerDimi,jAsIntegerFori=lTo3Forj=2To4arrayl(i,j)=i+jNextjNextiTextl.Text=arrayl(2,3)+arrayl(3,4)EndSub¦§¨©ᓫªᢥᙠᦻ᪾ÀÁḄFo2A:B:C345答A等3知343VB567/ᦪo¯ᵨ°±192ஹᙠBCDxr&'WCommandlḄᢥᯠᑏ᝞P¦§:PrivateSubCommandl_Click()DimiAsInteger,jAsIntegerDima(10,10)AsIntegerFori=lTo3Forj=lTo3a(i,j)=(i-l)*3+jPrinta(i,j);NextjPrintNextiEndSub¦§¨©ᓫªᢥBCDÀÁḄF_____oA123246369B234345456C147

63258369D123456789/ᫀD123343567VB567/ᦪo¯ᵨ°±193ஹᙠBCDårᓫ⌱ᢥoᡂxr&WchkOptionḄ<=ᦪo஺ᵨÚ᪗6ᔜr<=ᦪoᐗéḄêᦪFATagBIndexCListindexDName/ᫀB122342567VB567/<=ᦪo194ஹᙠBCDᨵxr&'WCommand1Ḅᢥ¿ᨵPÔ=¦PrivateSubCommandl_Click()StaticbAsVariantbÈArray(1,3,5,7,9)EndSubë¦Ḅ¹UFìᦪobḄ5rᦪ⌮§îᓽ᣸ᑡW9,7,5,3,1ñ஺Wë¹UḕᶍSᜐḄ¦§ô¯õFAFori=0to5T2tmp=b(i)b(i)=b(5-i-l)b(5-i-l)=tmpNextBFori=0to5tmp=b(i)b(i)=b(5-i-l)b(5-i-l)=tmpNextCForiÈ0to5\2tmp=b(i)b(i)=b(5-i-l)b(5-i-l)=tmpNext

64DFori=lto52tmp=b(i)b(i)=b(5-i-l)b(5-i-l)=tmpNext/ᫀC123343567VB567/ᦪo¯ᵨ°±195ஹᙠBCDxr&'WCommandlḄᢥᯠᑏ᝞Pṹ:OptionBase1PrivateSubCommandl_Click()dÈ0c=10x=Array(10,12,21,32,24)Fori=1To5Ifx(i)>cThend=d+x(i)c=x(i)Elsed=d-cEndIfNextiEndSub¦§¨©᝞®ᓫªᢥᑣᙠBC÷.«¬dḄᑁøW஺A89B99C23D77/ᫀC123343567VB567/ᦪo¯ᵨ°±196ஹPᨵᐵᦪomḄfg§ᑡ┯ûḄF—AStaticarrl(3)arrl(1)=100arrl(2)iHello”arrl(3)=123ஹ45EndSubBDimarr2()AsIntegerDimsizeAsIntegerPrivateSubCommand2Click0size=lnputBox("«ᐭ”)ReDimarr2(size)

65COptionBase1PrivateSubCommand3_Click()Dimarr3(3)AsIntegerEndSubDDimnAsIntegerPrivateSubCommand4Click()Dimarr4(n)AsIntegerEndSub/ᫀD123343567VB567/ᦪoḄmLuᵨ197ஹPmᦪoᡈþᦪoᐗqÿḄḄ—ADimaAsVarianta=Array(1,2,3,4,5)BDima(10)AsIntegera=Array(l,2,3,4,5)CDima%(10)a(l)="ABCDE”D:যDima(3),b(3)AsIntegeraপaফaab=0ᫀA232452678VB678/ᦪ;Ḅ<=>?ᵨ198ஹᙠEFGHIJKLMCommandlḄPQᢥSᯠUVᑏ᝞YZ[\]:OptionBaseIPrivateSubCommandlClick()Dimaa=Array(1,2,3,4,5)Fori=lToUBound(a)a(i)=a(i)+i-lNextEndSub]mnoUᓫqPQᢥSᑣᙠEFGsta(3)ḄᑁvoA4B5

66C6D70ᫀB232452678VB678/ᦪ;yᵨz{199ஹ▅}]mOptionBase1PrivateSubFormClick()Dimarr,SumSum=0arr=Array(1,3,5,7,9,11,13,15,17,19)Fori=lTo10Tfarr(i)/3=arr(i)3ThenSum=Sum+arr(i)EndIfNextiEndSub]mnoUᓫqEFSumḄMA13B14C27D150ᫀC233453678VB678/ᦪ;yᵨz{200ஹᙠEFGHIJKLMCommandlḄPQᢥSᯠUVᑏ᝞Y]m:OptionBase1PrivateSubCommand1_C1ick()DimaAsVarianta=Array(l,2,3,4,5)Sum=0Fori=lTo5Sum=sum+a(i)Nextix=Sum/5Fori=1To5Ifa(i)>xThenPrinta(i);NextiEndSub]mnoUᓫqPQᢥSᙠEFGstḄᑁvOA12B123

67C345D450ᫀD233453678VB678/ᦪ;yᵨz{201ஹᐵReDim┯Ḅ஺AReDimᙠ\]BDimReDim•J᡻oCReDimḄᵨ᝱ᦪ;DReDimḄᵨ᝱ᦪ;ᑖ▭Ḅᐗ¡Jᦪ0ᫀC233453678VB678/☟᝱ᦪ;᝱ᦪ;202ஹInputBox£ᦪ¤¥Ḅ¦§M஺AᦪB¨©ªC«FD¬0ᫀ•B231451678VB678/®ᵨᑁ¯£ᦪ203ஹ⌕ᑖIJ3X3Ḅᓫ²5¦§Ḅᦪ;Ḅᦪ;ADima(9)AsSingleBDima(-lTo1,-5To-3)AsSingleCDima(3,3)AsSingleDDima(-3To1,-5To7)AsSingle0ᫀB232452678VB678/ᦪ;Ḅ<=>?ᵨ

68204ஹᎷ<´\µᑴ·¸¹º»1JPQᢥSᦪ¼;Commandsᑣ½¾.ÀÁ┯Ḅ—Aᦪ;ÂJPQᢥSḄKLᙳMCommandlBᦪ;ÂJPQᢥSḄᜧÅÆI᪵Cᦪ;ÂJPQᢥS½Èᵨ•JZ[\]DᵨKLCommandl½ÉÊᦪ;ÂJPQᢥS0ᫀD232452678VB678/Ë[ᦪ;205ஹYᑡ]mÍḄ᡻oMDimt(10)Fork=2To10t(k)=11-kNextkx=6Printt(2+t(x))A2B3C4D50ᫀC232452678VB678/ᦪ;yᵨz{206ஹEFGᨵCommand1ஹCommand2ÏJPQᢥSOptionBase0Dima()AsInteger,mAsIntegerPrivateSubCommand1Click()M=InputBox("ÑᐭIJ᦮ᦪ”)ReDima(m)EndSubPrivateSubCommand2Click()m=InputBox("ÑᐭIJ᦮ᦪ”)ReDima(m)EndSubno]mÔᓫqCommandlUᐭ᦮ᦪ10,ÕᓫqCommand2Uᐭ᦮ᦪ5,ᑣᦪ;aᐗÖḄJᦪA5B6C10

69D110ᫀB233453678VB678/☟᝱ᦪ;᝱ᦪ;207ஹYᑡ½M᝱ᦪ;ᑖ▭ᐗ¡Jᦪ஺ADimBstaticCpublieDReDim0ᫀ:D231451678VB678/☟᝱ᦪ;᝱ᦪ;208ஹYᑡ]mḄnoMoDima(-lTo6)Fori=LBound(a,1)ToUBound(a,1)a(i)=iNextiPrinta(LBound(a,1));a(UBound(a,1))A00B-50C-16o6答案c:等级3知识••453l八VB678/ᦪ;Ḅ<=>?ᵨ209ஹY☢Ḅᦪ;Ḅ—ADimpict[3,4]AsIntegerBDimpict(3,4)AsIntegerCDimpict[3>4]AsIntegerDDimpict(3:4)AsInteger0ᫀB232452678VB678/ᦪ;Ḅ<=>?ᵨ

70210ஹÛ⌕ᔣᑡ⊤᪾ßàᑡ⊤⚗ÈᵨḄâÁ—AAddBRemoveCClearDAddItem0ᫀD231451678VB678/ᑡ⊤᪾>;ᔠ᪾211ஹᙠ\]<=ᵨYᑡ⊤täåḄæ஺AVarBByRefCByvalDValue0ᫀC231451678VB678/åᦪḄæ⌴212ஹÛèVᑏ»IJSorté\]ᙠêë]ᨵìJEFM»âíᙢïᵨSorté\]yðê\]ñᙠ஺AEFòᙽB:᪗õòᙽC¦òᙽDë]0ᫀB232452678VB678/Sub\]213ஹ⌕ö÷é\]ïᵨU¤¥ÏJY☢é\]ÀᔠÁḄASubf2(ByValn%,ByVaitn%)BSubfl(n%,ByVaim%)CSubfl(n%,m%)

71DSubfl(ByVain%»m%)0ᫀC233453678VB678/Sub\]214ஹY☢é\]ÀᔠÁḄIoASubfl(ByVain())asintegerBSubfl(n()asinteger)asintegerCfunctionfl(flasinteger)asintegerDfunctionfl(ByVainasinteger)0ᫀD232452678VB678/Sub\]215ஹè6£ᦪ<=Functionf(xl%,x2%)asinteger,ᑣYᑡïᵨḄAa=f(x,y)Bcallf(x,y)Cf(x,y)Dfxy0ᫀ:A232452678VB678/åᦪḄæ⌴216ஹῃúûüýþºÿᙠḄ<,ABᵨCDᦪᫀA11VB/Sub217ஹSUB'Function.᪷0Ḅ12஺

72ASUB45ᵨCall89:;<ᵨ=>Function?@BFunction45ᨵBC=>SUB?45CSUB?@DEF=>Function45DEFDGHḄI⌴KL?MᫀA11VB/Sub218ஹOᨵ᝞Q:subff(x,y,z)x=y+zEndsub5QᡠᨵCᦪḄ_`aᔠcIᙢᙬḄ<ᵨ89஺ACallff(5,6,a)BCal1ff(x,y,z)CCallff(3+x,5+y,z)DCal1ff(y+x,x-y,z)ᫀB22VB/CᦪḄI⌴219ஹQᑡᐵmᦪḄnop=qrḄoA᝞s?ᢣuᦪCᦪḄvw=ᑣyCᦪzᨵᦪ{vwBᦪḄBC|`CḄ}ᦪ?◤⌕CᦪᦪḄCᦪ=45ᢥIFKL=45ᢥIᙢᙬKLDᦪpBCḄvw'ᦪDEFḄvwzᨵᐵᫀD22VB/ᦪ220ஹ5QᐵmḄnop=┯Ḅ஺Aᵫ}ḄBᦪḄ45DE}FC45ᙠp<ᵨᦪD?@ᙠpᦪ

73ᫀB11VB/ᦪ221ஹᨵ•}ᡂPublicSubW1(ByVaixAsInteger,yAsInteger),<ᵨḄqrBLAWl(x,3)BCallW13,xCa=W1(x,3)DCallW1(3,x)ᫀ:D22VB/Sub222ஹ⌨¡=¢DEᑮ¤<=4¥ᵨ89஺AReturnBExitSubCExitDStopSubᫀB11VB/Sub223ஹᙠp=BCᨵIFஹIᙢᙬGHKL=¨©IᙢᙬKL=45ᙠBCª«ᐵ¬⊤¯IᙢᙬKL஺AVarBByRefCByvalDValueᫀB11VB/CᦪḄI⌴224ஹQᑡ_____KL³uḄ´µᙠ¶·<ᵨ¸ᐸF?@ºᶇ஺

74Aᙠᵨ³u¼³u½¾´µBᙠpᵨStatic89³uḄ´µCᙠpᵨDim89³uḄ´µDᙠ᪗ÁÂᙽp³uḄᐰÅ´µᫀC11VB/´µ'ḄᵨÆ225ஹQ☢Ḅ89pᔠÈḄ஺AFunctionSubl(Subl)BFunctionSubl(ByVain)CSubSubl(Subl)DSubSubl(n)AsInteger答案B等级2知识2VB/Sub226ஹQᑡᦪpᦪDEḄFᦪFwḄ஺AInstrBMidCSpaceDChrᫀA11VB/ËᵨᑁÍᦪ227ஹCᦪI⌴ÎÏ}CᦪI⌴ÐA,¢DEÏ}as=QᑡpqrḄASubA(m+1,n+2)BSubA(ByVaim!,ByVain!)CSubA(ByVaim!,n+2)DSubA(ByVaim!»n!)ᫀ:D22

75VB/CᦪḄI⌴228ஹᙠᦪ'p=ÓCᦪ᝞s⌕¥ᵨIᙢᙬḄKL=ᑣᙠÔÓCᦪḄª☢—A«ByVaiB«ByReferenceC«ByAddressD?ᵨᑏ×ØᫀD11VBÙ/CᦪḄI⌴229ஹ᪷{´µḄᵨÆ=45δµᑖ3v=ÛÜÏAÅÍ´µஹ½¾/Âᙽ´µ|᪗Á´µBÅÍ´µஹÂᙽ´µ|᪗Á´µCÅÍ´µஹ½¾/Âᙽ´µ|ᐰÅ´µDÅÍ´µஹ½¾´µ|ᐰÅ´µᫀC11VB/´µ'ḄᵨÆ230ஹᙠApÝ☟᝱´µy஺<ᵨAà=ᙠ⌨¡AªyḄF5஺áâ=Q·ãäᐭA=yḄF______oA?FB5C0Dæ¡┯ᫀB11VB/´µ'ḄᵨÆ231ஹ5QᐵmçCᦪḄèop=qrḄ—A´µḄCᦪ=é@¥ᵨ஻Iᙢᙬ஻KLäë

76BᦪḄCᦪ=é@¥ᵨ஻Iᙢᙬ஻KLäëCᙠVBp=ᐕíᵨᡝᡈᦪäëðᝅDéᨵᦪ@òÎpᜐᳮḄõöIEᑮ<ᵨḄ÷pᫀB22VB/CᦪḄI⌴232ஹQᑡnopqrḄ஺Aᙠ½¾ḄForm_Loadp³uḄ´µᐰÅ´µBÅÍ´µḄᵨÆ45ù¡ᡠḄCᙠ}Subp³uḄ´µ4'ᐸúp³uḄ´µM=ûᵨÆé▲m¸Dᙠ<ᵨ=ᡠᨵᦪFwÅÍ´µýþÿᓄ0ᫀC22VB/Ḅᵨ233ஹᙠVisualBasic&ᵨ'()஺AḄ,-./0ᝅ23Ḅ4ᵨ560ᝅBḄ,-5./0ᝅ23Ḅ4ᵨ./0ᝅCḄ,-7Ḅ4ᵨᙳ./0ᝅDḄ,-7Ḅ4ᵨᙳ560ᝅᫀB11VB/Sub234ஹᎷ,ᨵ/@ABSubSI(ByVaixAsInteger,ByVaiyAsInteger)DimtAsIntegert=x:x=y:y=tEndSubSubS2(xAsInteger,yAsInteger)DimtAsIntegert=x:x=y:y=tEndSubS4ᵨTABUV2/W.YZ([\Ḅ]OAᵨSiq/`abᣚAB`dḄeḄf2S256`aBᵨS2./`abᣚAB`dḄeḄf2S156`a

77CᵨSI7S2g./`abᣚAB`dḄeḄfDᵨS17S2g56`abᣚAB`dḄeḄfᫀB33VB/dᦪḄi⌴235ஹlᵨ]m0Al'nᙽᓄBl'᧕q▅sCtu'vwxDyqz{Ḅ|}ᫀA11VB/Sub236ஹSubḄ,-oA),⌕ᨵdB),⌕ᢣ]ᨵḄ]ᨵḄC),⌕ᨵḄD),⌕ᢣ,ᐸᫀ•C11VB/Sub237ஹFunctionḄ,-஺A),⌕ᨵdB),⌕ᨵEndFunctionC),⌕ᨵAsD),⌕ᢣḄᫀB11VB/ᦪ

78238ஹFunctionᨵqSubḄᨬ⌕Ḅᱯ]஺AFunction),⌕ᨵd2Sub./ᨵdBFunctionḄ]EndFunction,SubḄ]EndSubCFunctionᵨq¡ᦪe2Subᵨqᦋ£ឋeDFunction⌕¥¦ᦪe2Subᨵᦪe¥¦ᫀD22VB/Sub239ஹ⌕,-)B¨©2&lᵨᐵ«¬஺AStaticBPublicCPrivateDSubᫀC11VB/Ḅᵨ240ஹ@ᑡᦪ°±2[\Ḅ]oAᦪ²6³´e)µBᦪ³´e2¶ᨵᦪe¥¦4ᵨ(Cᦪ./·µ³´eD,-ᦪḄ]ᢣ,-dḄᫀC11VB/ᦪ241ஹ@ᑡ,-abcḄ2[\Ḅ].ADimSubabc(x,y)BPublicabc(x,y)CPrivateSubabc(x,y)AsIntegerDSubabc(x,y)

79ᫀD11VB/Sub242ஹ@ᑡ,-FunctᦪḄ2┯¹Ḅ]஺APrivatePublicFunct(a)AsIntegerBStaticFunctionFunct(a)CPrivateFunctionFunct(aAsSingle)DFunctionFunct(aAsInteger)AsIntegerᫀA11VB/ᦪ243ஹ£qoAᐰ¨B☟᝱C¨©D½ᫀC22VB/Ḅᵨ244ஹᵨStaticᐵ«¬,-]ᢣoA¾]☟᝱ḄB¾d]☟᝱ḄC¾(Ḅ¨©]☟᝱ḄD¾ᦪḄ¥¦e]☟᝱ḄᫀC33VB/Ḅᵨ245ஹᙠ¿½nᙽḄÀᵨ¾(¾V256lᵨᐵ«¬஺ADimBPrivate

80CPublicDStaticᫀD33VB/Ḅᵨ246ஹᎷ,BÁᵫ•B¿½ᦻÄForml7AB᪗ÆnᙽᦻÄModellÈModel2Éᡂ஺ModellËṹ᝞@PublicxAsIntegerPublicyAsIntegerSubSl()x=1S2EndSubSubS2()y=10Forml>ShowEndSubMode12ḄËṹ᝞@:SubMain()SIEndSubᐸ(Subᙬtin³ÒÓÔÕ஺'vwÖ2ᔜnᙽḄ᡻wÙ'])oAForml->Model1->Mode12BModel1->Model2->FormlCModel2->Modell->FormlDModel2->Forml->Mode11ᫀC33VB/VBḄÁÛ᪀247ஹ/@°±(┯¹Ḅ]oAᙠÀᵨ(2·BdÝÞ./ᵨ⌹àᑖ◞ãBᙠPrintäZ(2·Båæ⚗ÝÞ./ᵨ⌹àᑖ◞ãCᙠDim(2ᡠ,-Ḅ·B./ᵨ⌹àᑖ◞ãDS)w(ᨵ·BV2./ᵨ⌹àᑖ◞ãᫀD22VB/VBḄÁÛ᪀

81248ஹVBé(ᐵqᡈᦪḄdᵨZY5[\Ḅ]஺AByVaiḄd2]ᢥdᦪḄeìwi⌴Bᙠᙢᙬ4ᵨV2`d./]2î./]ïC)ð4ᵨV2ᡠñ,Ḅ`d◤dḄÙ'ÈóôᡈóõDdḄ./ᵨöḄᡈᵨᡝö,-Ḅᩭᢣ,2î./5ᢣ,答案B等级3知识点•.:3:VB/dᦪḄi⌴249ஹ/@°±(2┯¹Ḅ]oA)BÁ(./ᒹú·B¿½ᦻÄBᙠ)B¿½ᦻÄ(ᵨPrivate,-ḄÀᵨ6³ᐸû¿½4ᵨCÒVB'V:¿½ஹ᪗Ænᙽஹnᙽ◤⌕ᑖü5õḄýþᦻÄDᐰ¨ÿᙠ᪗ᙽ答案B:等级2知识2JVB/VBḄ᪀250ஹᙠ!"#CommandlḄ+,ᢥ./ᯠ12ᑏ᝞5678:PrivateSubCommandl_Click()StaticxAsIntegerCisFori=lto2y=y+xx=x+2NextPrintx,yEndSubUVW1/XY3[ᓫ]Commandlᢥ.1/^_Ḅ`஺A42B1218C1230D46gᫀBij33VB/klm8Ḅnᵨp

82251ஹ᝞q᦮sklAஹbḄtᑖv#3w1,ᑣ5ᑡz{|}Ḅ᡻W[ᦪ`ForI=atobPrintINextIA0B1C2D3gᫀAij11VB/|}᪀252ஹ5Casez{┯Ḅ`ACase0To10BCaseIs>10CCaseIs>10AndIs<50DCase3,5,Is>10gᫀCij11VB/ᑖ(⌱)᪀253ஹᙠ+,ᢥ.Command1,2ᑏ᝞5UPrivateSubCommandl_Click()x=InputBox()Ifx"2=9Theny=xIfx~2<9Theny=l/xIfxফ9Theny=x^2+lEndSubUVW1/ᙠInputBoxᐭ3,ᓫ]+,ᢥ./yḄVWq`A3B0.33C17D0.25gᫀAij22VB/ᑖ(⌱)᪀

83254ஹᙠ!"#Command1Ḅ+,ᢥ./ᯠ12ᑏ᝞5U:PrivateSubCommand1Click()Fori=1To4a=1Forj=1To3a=2Fork=1To2a=a+6NextkNextjNextiEndSubUVW1/ᓫ]+,ᢥ./ᑣᙠ^_aḄᑁ`A14B15C16D17gᫀAij33VB/|}᪀255ஹVB᡻W5☢z{1/AḄt#—A=1IfA>0ThenA=A+1IfA>1ThenA=0A0B1C2D3gᫀAij11VB/ᑖ⌱᪀256ஹ¡ᨵ᝞5U£x=2Fori=lTo10Step2x=x+iNextVWU1/xḄt`—A26

84B27C38D57gᫀBij11VB/|}᪀257ஹVW5ᑡU£1/^_Ḅq#Jl=23J2=32IfJKJ2ThenPrintJ2ElsePrintJIA23B32C55D2332gᫀBij11VB/ᑖ⌱᪀258ஹ᡻W¦.z{1^_q#஺DimxAsIntegerIfxThenPrintxElsePrintx-1A1B0C-1D¨©gᫀCij22VB/ᑖ⌱᪀259ஹ¦ᑡᐵ«dowhile•••loopwdo…loopuntil|}᡻W|}[ᦪḄ¯°±©Ḅ`Adowhile…loop|}wdo…loopuntil|}²³´᡻W[Bdowhile…loop|}wdo…loopuntil|}µ¶´¨᡻WCdowhile…loop|}²³᡻W[/do…loopuntil|}µ¶¨᡻WDdowhile…loop|}µ¶¨᡻W,do…loopuntil|}²³᡻W[

85gᫀDij11VB/|}᪀260ஹ5ᑡz{±©Ḅ`஺AIfAHBThenPrint"A¨i«B”BIfAOBThenPrintf"A¨i«B஻CIfAOBThenPrint"A¨i«B”DIfAᐵBPrint஻A¨i«B”答案c:等级1:识1八rVB/ᑖ⌱᪀261ஹᎷ¡xḄt#5,ᑣᙠ᡻W5z{¼/ᐸ¾q#"0K"Ḅq#ctcasez{`ASelectCaseXCase10to1Print"OK"EndSelectBSelectCaseXCaseIs>5,Is<5Print'OK"EndSelectCSelectCaseXCaseIs>5,1,3to10Print"OK"EndSelectDSelectCaseXCase1,3Is>5Print'OK"EndSelectgᫀCij22VB/ᑖ⌱᪀262ஹ᡻W5☢ḄU£1/xḄt#x=10Fori=lTo20Step3x=x+i\4NextIA24

86B2527D:M绦:答B识等2知点2:VB/|}᪀263ஹ᝞qklAஹBஹcᙳ#᦮s/5ᑡU£Ḅ¾q#a=2b=3c=a*bPrinta&&b&஻Å"&cAc=6Ba*b=cC2*3=6Da*b=6gᫀCij11VB/ÆU᪀264ஹ¦ᑡU£Ḅ᡻Wq#—X=2Y=1IfX*Y<1ThenY=Y-1ElseY=-lPrintY-X>0ATrueBFalseC-1D1gᫀBij11VB/ᑖ⌱᪀265ஹ5ᑡU£᡻W1/IḄq#—1=0ForG=10To19Step31=1+1NextG

87A4B5C3D6gᫀAij11VB/|}᪀266ஹ5ᑡU£᡻W1/AஹBḄqᑖv#—A=0B=0For1=_1TO~2Step-1ForJ=1TO2B=B+lNextJA=A+1NextIA24B-22C42D23gᫀAij11VB/|}᪀267ஹ5☢ᨵᐵÉÊz{ḄËÌ/┯Ḅ`஺ARemÉÊᑁB'ÉÊᑁCa=3:b=2'ÎAஹbÏtDPrivateSubCommand1MouseDown(buttonAsInteger,shiftAsInteger,RemÑ᪗ᢥ567Ḅ+,Òᵨ8XAsSingle,YAsSingle)gᫀDij11VB/ÆU᪀268ஹ5U£VW¼ÓÔÕᐭÖ×"ᑣaḄ¾q#op$=lnputBox("op=")Ifop$="+"Thena=a+2

88Ifop$=-Thena=a-2A2B-2C0D+2gᫀBij22VB/ᑖ(⌱)᪀269Ù2ᑏ᝞5UPrivateSubForm_Click()a$:஻54321஻b$:஻abcde"Forj=lTo5PrintMid$(a$,6-j,1)+Mid$(b$,j,1)NextjPrintEndSubUVW1/ᓫ]/ᐸ¾q#Aalb2c3d45eBa5b4c3d2elCeld2c3b4a5Dla2b3c4d5e答案等级D知识22VB/|}᪀270ஹᙠÚ!"ᑖv#TcxtlஹText2ḄᦻÜ᪾w!"#CommandlḄ+,ᢥ./ᯠ12ᑏ᝞5678PrivateSubCommand1Click()DimxAsInteger,nAsIntegerx=ln=0DoWhilex<20x=x*3n=n+lLoopTextl.Text=Str(x)Text2.Text=Str(n)EndSubUVW1/ᓫ]+,ᢥ./ᙠÚᦻÜ᪾^_Ḅtᑖv`஺A15w1

89B27w3C195w3D600w4gᫀBij33VB/|}᪀271ஹᙠ+,ᢥ./ᯠ12ᑏ᝞5678PrivateSubCommand1Click()x=0DoUntilx=-la=InputBox("áᐭAḄt”)a=Val(a)b=InputBox("áᐭBḄt”)b=Val(b)x=InputBox("áᐭxḄt”)x=Val(x)a=a+b+xLoopEndSubUVW1/ᓫ]+,ᢥ./â[ᙠᐭÎã᪾ᐭ5ஹ4ஹ3ஹ2ஹ1ஹ-1,ᑣaḄ¾q#A2B3C14D15gᫀAij22VB/|}᪀272ஹ¡ᨵ᝞5UPrivateSubFormClickOscore=int(Rnd*10)+30SelectCasescoreCaseIs<10a$=஻F஻Case10To19a$Å஻D஻Case20To29a$=஻C”Case30To39a$=஻B஻CaseElseEndSelectEndSub

90UVW1/ᓫ]/ᑣᙠ^_"$Ḅq`.AABBCCDDgᫀBij22VB/ᑖ(⌱)᪀273ஹᙠ!"#CommandlḄ+,ᢥ./!"#LabellḄ᪗ä/ᯠ12ᑏ᝞5678:PrivateSubCommand1_C1ick()S=0Fori=lto15x=2*i-lTfxMod3=0Thens=s+lNextiLabel1.Caption=sEndSubUVW1/ᓫ]+,ᢥ./ᑣ᪗ä^_Ḅᑁ`OA1B5C27D45gᫀBij22VB/|}᪀274ஹ5ᑡU£Ḅ᡻Wq#—a=lb=0SelectCaseaCase1SelectCasebCase0Print"**0**"Case1Print"**1**"EndSelectCase2Print,**2**஻EndSelectA**0**

91B**1**C**2**D0gᫀAij22VB/ᑖ⌱᪀275ஹ5ᑡU£Ḅ᡻Wq#N=0For1=1To3ForJ=5To1Step-1N=N+1NextJNextIPrimNJIA1204B1504C1231D1531gᫀBij22VB/|}᪀276ஹ¡ᨵ᝞5UPrivateSubForm_Click()a=1Fori=1To3SelectCaseiCase1,3a=a+1Case2,4a=a+2EndSelectNextiEndSubUVW1/ᓫ]/ᑣᙠ^_aḄᑁ`A6B5C4D3

92gᫀBij22VB/|}᪀277ஹ5ᑡU£᡻W1,1Ḅq#a=75Ifa>60Then1=1Ifa>70Then1=2Ifa>80Then1=3Ifa<90Then1=4A1B2C3D4gᫀDij22VB/ᑖ⌱᪀278ஹ2ᑏ᝞5678PrivateSubForm_Clickk=2Ifk>=lThenA=3Ifk>=2ThenA=2Ifk>=3ThenA=IEndSubUVW1/ᓫ]/¾AḄq#—A1B2C3D¾┯gᫀBij22VB/ᑖ⌱᪀279ஹ5ᑡU£Ḅ᡻Wq#A="abed"B=஻bcde஻E=Right(A,3)F=Mid(B,2,3)IfE

93AcdebcdBcddCcdcdDbcdcdegᫀDij33VB/ᑖ(⌱)᪀280ஹᨵ᝞5678PrivateSubCommandl_Click()b=10DoUntilb=-la=lnputBox("áᐭaḄt”)a=Val(A)b=InputBox("áᐭbḄt”)b=Val(b)a=a*bLoopEndSubUVW1/â[ᐭᦪt30,20,10,-1,¾aḄq#A6000B-10C200D-6000gᫀBij22VB/|}᪀281ஹ5ᑡU£Ḅ᡻Wq#—a=3b=lFor1=1To3f=a+ba=bb=fPrintf;NextIA436B459C634

94D728gᫀBij11VB/|}᪀282ஹ5¶æ±©çèn!ḄU`APrivateSubCommand1_C1icK()n=5:x=lDox=x*ii=i+lLoopWhileinPrintxEndSubgᫀCij33VB/|}᪀283ஹ᡻W5U£DimxAsInteger,iAsIntegerx=0Fori=20To1Step-2x=x+i\5

95NextI᡻W1/XḄt#oA16B17C18D19gᫀCij11VB/|}᪀284ஹᙠ!"#CommandlḄ+,ᢥ./ᯠ12ᑏ᝞5678:PrivateSubCommandl_Click()x=InputBox("Input")SelectCasexCase1,3Print"ᑖ1"CaseIs>4Print"ᑖ2”CaseElsePrint"ElseᑖEndSelectEndSubUVW1/᝞qᙠᐭÎã᪾ᐭ2,ᑣ^_Ḅ`—Aᑖ1Bᑖ2CElseᑖDU¾┯gᫀCij11VB/ᑖ(⌱)᪀285ஹᙠ+,ᢥ./ᐸ!"#Commandl,ᯠ12ᑏ᝞5678:PrivateSubCommandl.Click()X=-5IfSgn(x)Theny=Sgn(x"2)Elsey=Sgn(x)EndIfPrintyEndSubUVW1/ᓫ]+,ᢥ./ᐸ¾q#O

96A-5B25C-1D1gᫀDij22VB/ᑖ⌱᪀286ஹ5ᑡU£Ḅ᡻Wq#1=9x=5Do1=1+1x=x+2LoopUntilI>=7Print"I=஻I;Print"xÅ"xA1=4x=5B1=7x=15C1=6x=8D1=10x=7答案D:等级:2知识点2:VB/|}᪀287ஹ5ᑡU£᡻Wq#_ox=5y=-6IfNotx>0Thenx=y-3Elsey=x+3Printx-y:y-xA-33B5-9C3-3D-65gᫀAij11VB/ᑖ⌱᪀

97288ஹ5ᑡU£᡻W1/aஹbḄqᑖv#—a=lb=5Doa=a+bb=b+1LoopWhilea<10A15B127CabD1025gᫀ:Bij:22Jஹ:VB/|}᪀289ஹ5☢U£᡻Wq#.x=Int(Rnd()+4)SelectCasexCase5Print“excellent”Case4Print"good"Case3Print"pass”CaseElsePrint"fail"EndSelectAexcellentBgoodCpassDfailgᫀBij22VB/ᑖ(⌱)᪀290ÙᎷᨵ5|}᪀Dountilᩩ7|}Loopᑣ5ᑡìí±©Ḅ`—A᝞q஻ᩩ7”`•#TḄîᦪ/ᑣ[|}ï¨᡻W

98B᝞q"ᩩ7”`#TḄîᦪ/ᑣ²³᡻W[|}C᝞q஻ᩩ7”`¨#TḄîᦪ/ᑣ²³᡻W[|}D¨ð"ᩩ7"`ᔲ#஻ò”/²³⌕᡻W[|}gᫀAij11VB/|}᪀291ஹ5ᑡU£᡻W1/ZḄq#A="ABBACDDCBA”For1=6To2Step-2X=Mid(A,I,I)Y=Left(A,I)Z=Right(A,I)Z=X&Y&ZNextIAABABAABAABCBBABBADABBABAgᫀCij33VB/|}᪀292ஹçèzḄt/xᜧ«i«y¼/z=xᔲᑣz=y஺5ᑡz{┯Ḅ`AIfx>=yThenz=x:z=yBIfx>=yThenz=xElsez=yCz=y:Ifx>=yThenz=xD:案Ifx

99B22C23D24gᫀAij11VB/|}᪀294ஹᎷ¡ᨵ5U£For1=1to3Forj=5to1Step-1PrintI*jNextjNextIᑣz{PrintI*jḄ᡻W[ᦪ÷IஹjḄtᑖv`.A1540B163C1740D1831gᫀAij22VB/|}᪀295ஹᎷᨵ5U£Fori=1To3Forj=5To1Step-1Printi*jNextj,iᑣz{Printi*jḄ᡻W[ᦪ`A15B16C17D18gᫀAij11VB/|}᪀296ஹᙠ•+,ᢥ.(Nameøឋ#Command1),ᯠ12ᑏ᝞5úṹ:PrivateSubCommand1Click()

100s=0Fork=1To3Ifk<=1Thenx=1ElseIfk<=2Thenx=2ElseIfk<=3Thenx=3Elsex=4EndIfPrintx;s=s+xNextkEndSubUVW1/ᓫ]+,ᢥ./¾sḄq`.A3339B1216C1113D1236gᫀDij33VB/üᑴ᪀þᵨUÿ297ஹᑡ᡻kஹaḄᑖa=6Fork=lTo0a=a+kNextkA%-16B%-116C%16D%1121+ᫀ%c./%101%1234%VB234/78᪀298ஹᙠActivate>?@Aᑏᐭ☢Ḅ:PrivateSubFormActivate()DimSAsString,aAsString,bAsStringa=b=஻$஻Fori=1to4Ifi/2=Int(i/2)Then

101S=String(Len(a)+i,b)ElseS=String(Len(a)+i,a)EndIfPrintS;NextiEndSub[\]^OA%$$***$$$$*****B%*$$**$$***$$$****$$$$C%**$$$****$$$$$D%$*$$**$$$***$$$$****+ᫀ:C./%301%3234%VB234/bᑴ᪀dᵨf299ஹ᡻☢ḄxḄg—Dimm(3,3)AsIntegerDimiAsIntegerDimjAsIntegerDimxAsIntegerFori=lTo3m(i,i)=iNextFori=0To3Forj=0To3x=x+m(i,j)NextNextA%3B%4C%5D%6+ᫀ%D./%301%3234%VB234/78᪀300ஹ᝞᦮mnoaஹbḄgᑖ3p1,ᑣᑡrsA78tḄ᡻uᦪ^ForI=atobPrintINextIA%0

102B%1C%2D%3+ᫀ%A./%101%1234%VB234/78᪀301ஹᙠwtAxyz{|}ᢥCommandsᑏ᝞:PrivateSubCommandl_Click()xInputBox("”)Ifx"2=9Theny=xIfx'2<9Theny=l/xIfx"2>9Theny=x"2+lEndSub[ᙠInputBox"ᐭ3,ᓫ|}ᢥyḄ[^A%3B%0.33C%17D%0.25+ᫀ%A./%201%2234%VB234/ᑖ(⌱)᪀302ஹᙠwtAxyz{CommandlḄ|}ᢥᯠᑏ᝞:PrivateSubCommandl_Click()Fori=1To4a=1Forj=1To3a=2Fork=1To2a=a+6NextkNextjNextiEndSub[ᓫ|}ᢥᑣᙠwt\]aḄᑁ^oA%14B%15C%16D%17

103+ᫀ%A./%301%3234%VB234/78᪀303ஹᨵ᝞%x=2Fori=lTo10Step2x=x+iNext[.xḄg^A%26B%27C%38D%57+ᫀ%B./%101%1234%VB234/78᪀304ஹ[ᑡ\]ḄJl=23J2=32IfJKJ2ThenPrintJ2ElsePrintJIA%23B%32C%55D%2332+ᫀ%B./%101%1234%VB234/ᑖ⌱᪀305ஹ᡻rs\]DimxAsIntegerIfxThenPrintx+1ElsePrintx-1A%1B%0C%-1D%¡¢

104+ᫀ%c./%201%2234%VB234/ᑖ⌱᪀306ஹᨵ᝞%PrivateSubForm_Click()DimcheckAsBoolean,nAsIntegerchcck=Falscn=0DoDoWhilen<10n=n+1Ifn=5Thencheck=TrueExitDoEndIfPrintn¤LoopLoopUntilcheck=TrueEndSub[¦Ḅ^oA%123B%1234C%12345D%123456+ᫀ%B./%301%3234%VB234/bᑴ᪀dᵨf307ஹ᡻ᑡ¦yḄ^zForkl=0To4y=20Fork2=0To3y=10Fork3=0To2y=y+10Nextk3Nextk2NextklA%90B%60C%40D%10

105+ᫀ%c./%301%3234%VB234/78᪀308ஹᙠwt§¨{ᦻª᪾(ᐸNameឋᑖTextlpText2)p{|}ᢥ(ᐸNameឋCommandl),ᯠᑏ᝞>?@%PrivateSubCommandlClick()x=0DoWhilex<50x=(x+2)*(x+3)n=n+lLoopTextl.Text=Str(n)Text2.Text=Str(x)EndSub[ᓫ|}ᢥᙠ¨{ᦻª᪾A\]ḄgᑖOA%1p0B%2p72C%3p50D%4p168+ᫀ%B./%301%3234%VB234/78᪀309ஹᙠwt§z{CommandlḄ|}ᢥᑏᑡ:PrivateSubCommand1_C1ick()CisDimaAsIntegerStaticbAsIntegera=a+bb=b+4Printa,bEndSub[ᓫ¯|}ᢥ°u±²\]Ḅg^O:A%412B%04C%48D%812+ᫀ%D./%201%2234%VB234/³᪀

106310ஹ☢´¡Ḅµgrs^.A%x+y=30B%pi*r*r=yC%y=x+30D%x=3y+ᫀ;c./%101%1234%VB234/³᪀311ஹ☢´¡Ḅµgrs^஺A%x=30-yB%y=r.rC%y=x+30D%y=x\3+ᫀ%B./%101%1234%VB234/³᪀312ஹ[¦஺x%=l/4y%=ll/4PRINTx%;y%A%0.250.75B%02C%03D%13+ᫀ%C./%201%2234%VB234/³᪀313ஹa=l,b=2,c=3,d=4,ᑣ⊤»¼Hf(aீb,c,d)ḄA%4B%3C%2

107D%1+ᫀ%B./%301%3234%VB234/ᑖ⌱᪀314ஹRnd¿ᦪÀÁᑡzzg஺A¤0B%1C%0.1234D%0.0005+ᫀ%B./%101%1234%VB234/Âᵨᑁÿᦪ315ஹ⊤»¼Int198.555*100+0.5/100Ḅg஺A%198B%199.6C%198.56D%200+ᫀ%C./%101%1234%VB234/Âᵨᑁÿᦪ316ஹa=6,ᑣ᡻x=Hfa>5,T,0xḄg—A%5B%6C%0D%-1+ᫀ%D./%301%3234%VB234/ᑖ⌱᪀317ஹµgrsg=123+MidC123456",3,2᡻nogAḄg^

108A%“12334"B%123C%12334D%157+ᫀ%D./%201%2234%VB234/³᪀318ஹᵨSelectCasers⌱|x|<=10ÇÈḄrs%CaseA%Not(-10To10)B%-10To10C%IsAbs(x)>10D%Is<-10Or>10+ᫀ%B./%101%1234%VB234/ᑖ(⌱)᪀319ஹÉx=l,᡻rsIfxThenx=0Elsex=1Ḅ^A%ÊË┯ÍB%Î┯ÍC%x=lD%x=0+ᫀ%D./%101%1234%VB234/ᑖ(⌱)᪀320ஹÏṹÁ᡻Ḅ^z஺A%Ifa=lThenb=0Elsec=0EndIfB%Ifa=lThen:B=0:ElselfC=0Then:D=0C%Ifa=1Thenb=0Elselfc=0Thend=0EndIf

109D%Ifa=1Thenb=0ElseIfc=0d=0EndIf01%2VB234/ᑖ⌱᪀321ஹᑡḄ78᪀᡻iḄ¦g^oDimyasIntegerFori=1To10Step2y=y+iNextiA%25B%10C%11D%ÑyÒg2⍝ᡠ¡¢+ᫀ%C./%101%1234%VB234/78᪀322ஹ78᪀Fori=1To10Step1.5Ḅ᡻uᦪ^A%7B¤8C%9D%10+ᫀ%A./%201%2234%VB234/78᪀323ஹᑡ᪀AÕ78᪀Ḅ^஺A%For/NextB%While/WendC%Sub/EndSubD%Do/Loop

110+ᫀ%c./%201%2234%VB234/78᪀324ஹᑡ᪀AÕᑖ᪀Ḅ^A%If/EndIfB%SelectCase/EndSelectC%Function/EndFunctionD%If/Else/EndIf答c等2知01%2VB234/ᑖ⌱᪀325ஹ[mḄ^m=1n=1Doin=m*nn=n+1LoopUntiln>42543B:c5524答案D:等级2:知识01%2f/VB234/78᪀326ஹ[sḄ^DimsAsLong,fAsLongDimnAsInteger,iAsIntegerf=1n=4Fori=1Tonf=f*is=s+fNextiA%33B%34

111C%35D%36+ᫀ%A./%301%3234%VB234/78᪀327ஹ[YḄ^oDimIAsInteger,XAsString,YAsStringX="ABCDEFG”ForI=4To1Step-1Y=Y+Mid(X,I,1)NextIA%ABCDB%DCBAC%DEFGD%GFED+ᫀ%B./%301%3234%VB234/78᪀328ஹ[,kஹbḄᑖ^DimbAsInteger,kAsIntegerb=1Fork=1To5b=b*kIfb>=15ThenExitForEndIfNextkA%315B%212C%424D%515+ᫀ%c./%301%3234%VB234/bᑴ᪀dᵨf329ஹḄ[^—PrivateSubFormClickO

112a=1b=aDoUntila>=5X=a*bPrintStr(a)&&Str(b)&Str(X),a=a+bb=b+aLoopEndSubA¤1*1=12*3=6B%1*1=22*2=4C%1*1-13*3=9D%1*1=23*2=6+ᫀ%A./%201%2234%VB234/78᪀330ஹ[yஹzḄᑖ^zx="abcdef”y=Asc("b")-Asc("a")z=Len(x)A%12B%16C%22D%26+ᫀ%B./%201%2234%VB234/³᪀331ஹ[ᑡ\]Ḅ^ox=Int(Rnd)+5SelectCasexCase5Print஻ÛÜ஻Case4Print஻ÝÞ஻Case3Print”ß@஻CaseElsePrint"ß@"EndSelectA%ÛÜ

113B%ÝÞC%ß@D%ß@+ᫀ%A./%101%1234%VB234/ᑖ⌱᪀332ஹᑡIfrsàáâãឋᵱஹåæᦟᣴஹéêëÕ40ìᩩ?ḄîᦪïA%Ifsex="ᵱ"Andage<40AndInStrduty,11ᦟᣴ">0Thenn=n+lB%Ifsex="ᵱ"Andage<40andduty=/,ᦟᣴ"ordutyæᦟᣴ"Thenn=n+lC%Ifsex="ᵱ"Andage<40AndRightduty,2=,rᦟᣴ"Thenn=n+lD%Tfsex="ᵱ"Andage<40Andduty=,rᦟᣴ"Andduty="æᦟᣴ"Thenn=n+l+ᫀ%D./%201%2234%VB234/ᑖ⌱᪀333ஹ☢ᑖ^ð¨{ᦪAḄᜧᦪḄò{´¡஺A%Max=IIfx>y,x,yB%Ifx>yThenMaxxElseMaxyC%Max=xIfy>=xThenMax=yD%Ify>=xThenMax=yMax=x+ᫀ%D./%301%3234%VB234/ᑖ⌱᪀334ஹ´¡Ḅ^஺A%Forx=lToStep10B%Forx=3To-3Step-3NextxC%Forx=lTo10D%Forx=10To1

114Nexty+ᫀ%B./%101%1234%VB234/78᪀335ஹᑡ78Á´ÂóḄ^—A%i=5DOi=i+lLoopUntili<0B%i=lDOi=i+2LoopUntili=10C%i=10DOi=i-2LoopUntili<0D%i=6DOi=i-2LoopUntili=l+ᫀ%C./%201%2234%VB234/78᪀336ஹÉ⌕⌨¦For78ÀöᵨḄrsA%ExitB%ExitDoC%TyeD%ExitFor+ᫀ%D./%101%1234%VB234/78᪀337ஹ÷a=l,b=3,c=5,d=4Ë,᡻☢zxḄgIfa

115Elsex=2EndIfElseIfc0y=x+lCaseIs=Oy=x+2CaseElsey=x+3EndSelectA%~5-2B%-5-4C%-5-3D%-5-5+ᫀ%A./%101%1234%VB234/ᑖ⌱᪀339ஹ☢Ḅýᵨ^஺m=0:n=0Fori=lTo10x=VaiInputBox"ûᐭxḄg%”Ifx>0Thenm=m+x

116Elselfx<0Thenn=n+lEndIfNextiPrintm,nA%áþøùúᐭḄᦪÿᐭᦪḄᦪBᑖᐭḄᦪᦪCᑖᐭḄᦪᦪḄᦪDᐭḄᦪᦪḄᦪᫀD2!2"#$VB"#$/'ᑴ)᪀+ᵨ-./0340ஹ᝞6ᐭḄᦪ7891ஹ2ஹ3ஹ4ஹ5ஹ6ஹ7ஹ8ஹ9ஹ10,@☢-.BCDEsḄ)69s=0Fori=lTo10x=VaiPInpulBoxP"VᐭxḄW”YYIfx/3=TntPx/3YThens=s+xEndIfNextiAs=18Bs=27Cs=36Ds=54ᫀA2!2"#$VB"#$/'ᑴ)᪀+ᵨ-./0341ஹᙠᩩfghIfx=lThenyj2k@ᑡmno9—Ax=lq2ᙳstWghBx=ly=2ᙳsᐵv⊤xyCx=lsᐵv⊤xyq2stWghDx=lstWghy:2sᐵv⊤xyᫀC1!1"#$VB"#$/ᑖ{P⌱}Y)᪀

117342ஹ~ᜧᙠᦟᣴḄk᝕ឋᦪᵨghAIFA$="᝕"ANDB$=஻ᦟᣴ஻ORB$=஻ᦟᣴ"THENN=N+1BIFB$="ᦟᣴ"ANDB$="ᦟᣴ஻ANDA$="᝕"THENN=N+1CIFB$>=஻ᦟᣴ"ANDA$=஻᝕"THENN=N+1DIFA$=஻᝕஻ANDPB$=஻ᦟᣴ"ORB$="ᦟᣴ஻YTHENN=N+1ᫀD1!1"#$VB"#$/ᑖ{P⌱}Y)᪀343ஹ@-.B᡻DEsஹxḄWᑖs—DimsAsInteger,xAsIntegers=10:x=1DoWhilex<10s=s+2x=x+2LoopA5011B2010C2011D10010ᫀC2!2"#$VB"#$/)᪀344ஹ@ᑡ-.ks=s+jghᐳ᡻D¡8஺DimsAsIntegerDimiAsInteger,jAsIntegerFori=1To10Step2Forj=1To5Step2s=s+jNextjNextiPrintsA10B15C20D25

118ᫀB2!2"#$VB"#$/)᪀345ஹ@-.B᡻DExḄWs—x=0Fori=1To5Forj=1To5x=x+1NextjNextiA15B20C25D30ᫀC2!2"#$VB"#$/)᪀346ஹ@ᑡ-.kgha=a-l᡻DḄ8ᦪ9a=0Forb=lTo-2Step-1a=a-lNextbA2B4C3D0ᫀB1!1"#$VB"#$/)᪀347ஹ@-.BḄ᡻D)69஺Forx=lTo2a=0Fory=lTox+1a=a+lNextyPrinta;NextxA11

119B00C12D23ᫀD2!2"#$VB"#$/)᪀348ஹ@-.B᡻DEnḄ)69n=0Fori=0To1Forj=0To1n=n+lNextjNextiA4B2C1D0ᫀA2!2"#$VB"#$/)᪀349ஹ@-.B᡻DExḄ)69Fori=lTo4x=2Forj=lTo3x=lFork=lTo2x=x+3NextkNextjNextiA7B6C56D72ᫀA2!2"#$VB"#$/)᪀

120350ஹᙠ©Dᑏ«ᩩgh¬gh®ᵨ¯°ᑖ◞஺A,B²CஹD²ᫀB1!1"#$VB"#$/-.³ᑏ´ᑣ¶·y¸¹351ஹ•ᩩgh⌕ᑖD³ᑏᵨ¯°¼½D¯஺A+B-C_D…ᫀC1!1"#$VB"#$/-.³ᑏ´ᑣ¶·y¸¹352ஹ@ᑡÀÁghÂa,bḄWÃᣚ—Aa=b:b=aBa=a+b:b=a-b:a=a-bCa=c:c=b:b=aDa=(a+b)/2:b=(a-b)/2ᫀB2!2"#$:VB"#$/È.)᪀353ஹᙠÉÊËÌÍᦻÏ᪾ÑᑖsTextlஹText2ஹText3,©ÒÓᢥÕCommand1஺᝞6ᙠTextlU×ᐭ150,Text2kᐭ200,ᑣ᡻D@ᑡ-.EText3kØÙḄᦪs©஺PrivateSubCommand1_Click()DimmAsInteger,nAsIntegerm=Vai(Textl.Text)n=Vai(Text2.Text)Ifm

121EndIfDor=mModnm=nn=rLoopWhiler<>0Text3.Text=Str(m)EndSub!3VB"#$/'ᑴ)᪀+ᵨ-./0354ஹ@-.B᡻DEayḄWᑖsa=10:y=0Doa=a+2y=y+aIfy>20ThenExitDoEndIfLoopWhilea<=14Aa=18y=24B²aj14y=26Ca=14y=24Da=12y=12ᫀB2!2"#$VB"Ý$/'ᑴ)᪀+ᵨ-./0355ஹᨵ᝞@-.Bj=l:n=0DoWhilen<3j=j*(j+Dn=n+lLoopCDEànjḄ)6ᑖ9A10

122B33C430D342ᫀD1!1"#$VB"#$/)᪀356ஹáᐭḄᦪᑖs14ஹ3¬᪗ãLabellkØÙḄWᑖ9PrivateSubForm_Click()DimaAsIntegera=Vai(InputBoxCVᐭ©ᦪ"))SelectCaseaMod5CaseIs<2w=a+10CaseIs<4w=a*2CaseElsew=a-10EndSelectLabel1.Caption=Str(w)EndSubA4ஹ6B6ஹ4C24ஹ6D6ஹ24ᫀA2!2"#$VB"#$/ᑖ{(⌱}))᪀357ஹᨵ᝞@-.CDEà)69PrivateSubForm_Click()a=5Ifa<=3ThenPrint3;EndIfIfa<=4ThenPrint4;EndIfIfa<=5ThenPrint5;EndIfIfa<=6ThenPrint6;EndIf

123EndSubA3456B456C56D6ᫀC1!1"#$VB"#$/ᑖ{(⌱}))᪀358ஹᨵ᝞@-.CD¬ᐭ4,åIJàbḄ)69PrivateSubForm_Click()ajInputBox("Enteravalueofa:஻)SelectCaseaCaseIs>2b=a+lCaseIs>3b=a+2CaseIs>5b=a+3CaseElseb=a+4EndSelectEndSubA4B5C6D7ᫀB1!1"#$VB"#$/ᑖ{(⌱}))᪀359ஹ~᪍è1995éê᪛100ìEéḄê᪛☢íᢥ5%Ḅï!ðñòoᑮ1998é¬ôéḄê᪛☢íḄ-.9_____OAs=100:r=0.05Fori=1996To1998s=s*(l+r)sum=sum+sNextiPrintsumBs=100:sum=100:r=0.05Fori=1996To1998

124s=s*(l+r)sum=sum+sNextiPrintsumCs=100:r=0.05Fori=1996To1998s=s*(l+r)+ssum=sum+sNextiPrintsumDs0=100:sum=100:r=0.05Fori=1996To1998s=s*(l+r)+ssum=sum+sNextiPrintsumᫀB3!3"#$VB"#$/)᪀360ஹᙠÉÊõ©ÑsCommandlḄÒÓᢥÕöÑᑖsText1ஹTcxt2ḄᦻÏ᪾ᯠEøᑏ᝞@ùfú-PrivateSubCommandl_Click()n=Text1.TextSelectCasenCase1To20x=10Case2,4,6x=20CaseIs<10x=30Case10x=40EndSelectText2.Text=xEndSub-.CDE᝞6ᙠᦻÏ᪾TextlU×ᐭ10,ᯠEᓫüÒÓᢥÕᑣᙠText2kØÙḄᑁþ9©஺A10B20C30D40ᫀA1!1"#$VB"#$/ᑖ{(⌱}))᪀

125361ஹ-.ᙠCD஻For1=1to14step3஻)ÿIḄA12B13C14D16ᫀD11VB/᪀362ஹ!"#$%&'(!)*DoWhileLoopAEndBExitLoopCExitDoDExitForᫀC11VB/᪀363ஹ"ᑡ;<=>?@AxḄBx=3y=77dox=x+2loopuntilx>sqr(y)A7B8C9D10ᫀ:C22VB/᪀364ஹ"ᑡ;<=>?@AmḄB—a=2:b=l:c=5ifa

126A2B1C5DY⚗[\]ᫀB22VB/ᑖ_`⌱bc᪀365ஹ"ᑡ;<=>?@AxḄB—x=2:Printx+1:Printx+2:printx+3A2B3C5D8ᫀA22VB/e<᪀366ஹ"ᑡ;<=fg᡻?Ḅiᦪ]—y=2dowhiley<=8y=y+yloop23A:4B:C5答D:茶B等外l知谢占:1NVB/᪀367ஹ"ᑡ;<=>?@AnḄBn=0Forx=3to11step2n=n+lNextxA4

127B5C6D7ᫀB11VB/᪀368ஹᙠ;<=>?@AaஹbஹcḄᑖnBa=l:b=l:c=ldowhilea+b+c<=10a=a+lb=b*2c=b/2loopA221B342C484D442ᫀc22VB/᪀369ஹᙠpgqr$%stᢥvwxBCommandl஺ᯠ{ᑏ᝞";<:PrivateSubCommand1Click0For1=1To4ForJ=0ToIPrintChr$(65+1);NextJPrintNextIEndSub;<>?᝞ᓫstᢥvᑣᙠpgqḄᑁ]0ABBCCCDDDDEEEEEBABBCCCDDDDCB

128ccDDDEEEEDAABBBCCCCDDDDDᫀA33VB/᪀370ஹᙠpgqr%wxᑖnBText1ஹTexte2Ḅᦻ᪾%wxBCommandlḄstᢥvᯠ{ᑏ᝞";PrivateSubCommand1_C1ick()DimxAsInteger,nAsIntegerx=ln=0DoWhilex<20x=x*3n=n+lLoopTextl.Text=Str(x)Text2.Text=Str(n)EndSub;<>?ᓫstᢥvᙠ%ᦻ᪾fḄᑖn]஺A151B273C1953D6004ᫀB22VB/᪀371ஹᙠpgq%wxBCommandlḄstᢥvᯠ{ᑏ᝞";PrivateSubCommandlClick()DimnumAsIntegernum=1DoUntilnum>6Printnumnum=num+2.4LoopEndSub;<>?ᓫstᢥvᑣpgqḄᑁ]஺A13.45.8

129B135C147Dᦪ*ᫀB22VB/᪀372ஹᙠpgqr$%wxBCommandlḄstᢥvᯠ{ᑏ᝞";:PrivateSubCommand1Click()DimaAsInteger,sAsIntegera8s=lDos=s+aa=a-lLoopWhilea<=0Prints;aEndSub;<>?ᓫstᢥᑣpgqsaḄᑁᑖn]oA79B340C97DᫀC22VB/᪀373ஹ"ᑡ;<=>?@AnḄB—Forn=lTo20IfnMod300Thenm=m+n\3NextnA15B18C21D24ᫀC22VB/¢ᑴ᪀¤ᵨ;<¦§

130374ஹ¨ᨵ᝞";<:PrivateSubComandl_Click()DimsumAsDouble,xAsDoublesum=0n=0Fori=1To5x=n/in=n+lsum=sum+xNextEndSubª;<«For¬$%⊤¯°Ḅ±%⊤¯°]A1+1/2+2/3+3/4+4/5B1+1/2+2/3+3/4C1/2+2/3+3/4+4/5D1+1/2+1/3+1/4+1/5ᫀC33VB/᪀

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。
最近更新
更多
大家都在看
近期热门
关闭