vb试题库答案Word文件下载.docx
《vb试题库答案Word文件下载.docx》由会员分享,可在线阅读,更多相关《vb试题库答案Word文件下载.docx(53页珍藏版)》请在冰豆网上搜索。
(2)"
输入对话框"
(3)10
(4)11
(5)-20
(6)48
(7)1286
(8)4
(9)5
(10)6
(11)35
(12)816
(13)Len(text1.text)
(14)W>
="
A"
AndW<
Z"
OrW>
a"
z"
(15)"
"
(16)js=js+1
(17)flg=false
(18)ReDimPreserveData(Idx)
(19)Ub=Ubound(arry)
(20)ExitSub
(21)Sum
(22)Slen=Len(Char)
(23)j=j*10或j=10^i
(24)S
(25)F=True
(26)验证口令
(27)请输入口令
(28)*
(29)3
(30)-18
(31)627
(32)-299
(33)1
(34)5
(35)9
(36)31
(37)63
(38)val(txtinput.text)
(39)Prime(i)
(40)ExitFor或ExitFunction
(41)i>
Sqr(n)
(42)Len(s)
(43)Mid(s,i,1)
(44)Else或"
To"
F"
(45)k=k+p*Asc1
(46)Convert=k
(47)EeFF
(48)InputBox(msg,msgtitle)
(49)i-1
(50)a(j)>
a(j+1)
(51)thisisabook
(52)ThisIsABook
(53)6.5
(54)4913
(55)19.5
(56)18
(57)30
(58)12
(59)34
(60)43
(61)13579
(62)4
(63)2
(64)xmod2=0
(65)n1=n1+1
(66)sum=0
(67)kmodn=0
(68)ReDimPreserveA(j)
(69)Int(Sqr(sum))^2
(70)a=10b=15
(71)x=25y=25
(72)a=10b=15
(73)这是第1次调用s=25
(74)这是第2次调用s=50
(75)这是第3次调用s=75
(76)Sum=14
(77)Sum=10
(78)C:
\Microsoft
(79)VB6.exe
(80)132
(81)1122
(82)CBA
(83)ABC
(84)2
(85)3
(86)5
(87)k=xmod10
(88)I=I+1
(89)ByValnAsInteger
(90)n=n\10
(91)f=false
(92)Sqr(p)或p-1或p/2
(93)prime=True
(94)Int(Rnd*20)+10
(95)callste(a)
(96)a(i)=a(I+1)
(97)a(10)=k或a(i)=k
(98)True
(99)i=i+1
(100)x=x+1
(101)123
(102)45
(103)7
(104)C
(105)CW
(106)8
(107)41480
(108)221080
(109)12
(110)3
(111)3
(112)Gcd(27,12)=3
(113)Int(90*Rnd)+10
(114)Max=D(i)
(115)D(i)<
Min或Min>
D(i)
(116)Text1.Text
(117)Mid(s,n+1,Len(s)-n)
(118)a(i)=s
(119)p&
Mid(s,I,1)
(120)CStr(i)
(121)i
(122)ReDim
(123)Int(Rnd*90)+10
(124)m
(125)n
(126)12345
(127)AFT
(128)AatF
(129)5
(130)45
(131)54
(132)13
(133)15
(134)17
(135)01234
(136)45678
(137)8
(138)VLAUSI
(139)VILAUS
(140)VISUAL
(141)true
(142)p=p+1
(143)x=x+1
(144)Imodj=0
(145)s=i
(146)ByValmAsInteger,ByValnAsInteger
(147)gcd=gcd(m,n)
(148)gcd(n,p)=1
(149)31
(150)63
(151)Picture1.Picture=LoadPicture("
C:
\Pic\Fishing.bmp"
)
(152)VISUAL
(153)2005.10.11
(154)273
(155)180
(156)Lcm=27
(157)3
(158)7
(159)23
(160)1046
(161)562828
(162)K=66
(163)456
(164)369
(165)258
(166)147
(167)"
S("
&
CStr(x)&
"
CStr(n)&
)="
(168)DimiasInteger,pAsSingle
(169)p=p*i/(2*i)或p=p/2
(170)mid(st,I,1)
(171)Asc(s)-Asc("
)+1或Asc(s)-64
(172)Ubound(k)或10
(173)i=dToc+1
(174)c=c+1
(175)k(i-1)>
k(i)
(176)BCDEAF
(177)BDECAF
(178)BDECAF
(179)106
(180)516
(181)106
(182)4
(183)213
(184)16610
(185)682642
(186)68
(187)19
(188)15
(189)14
(190)n1=i\100
(191)n=n+1
(192)q=smod10
(193)Lcase(Text1.Text)
(194)n=Asc(s)-Asc(“a”)+1
(195)decode=decode&
Mid(r2,n,1)
(196)decode=decode&
Mid(r1,27,1)
(197)Flag=False
(198)Flag
(199)k/n>
1/4Andk/n<
1/3
(200)kmodi=0
(201)12
(202)60
(203)3
(204)9.6
(205)LSP
(206)HXF
(207)BGJ
(208)32
(209)65
(210)98
(211)3
(212)x=4
(213)26
(214)1515
(215)whileabs(t)>
eps
(26)(-1)^n
(217)t*x^2/n
(218)int(sqr(k))=sqr(k)
(219)k=k+1
(220)ReDimm(n2,n2)
(221)m(i,j)=”“
(222)Fz<
Fm
(223)ExitFunction
(224)CStr(Fz)&
CStr(Fm)
(225)Mid(s,i,1)=Mid(s,n,1)
(226)-1
(227)0.6
(228)1.8
(229)5.4
(230)10
(231)27
(232)9
(233)11
(234)2
(235)43
(236)7
(237)1
(238)16
(239)10
(240)Sqr(2+t)
(241)Abs(a-1)<
1e-5
(242)fac=1
(243)Abs(x)>
=1E-8
(244)1/fac(k)
(245)Int(90*Rnd)+10
(246)k=1
(247)Instr
(248)ExitFunction
(249)ExitFunction
(250)Rec(n,m,k+1)
(251)9000*Rnd+1000
(252)Str(x)
(253)Mid(s,3,1)+Mid(s,2,1)+Left(s,1)
(254)z=66
(255)213854
(256)1to9
(257)n+1
(258)b,a
(259)-i
(260)+i
(261)23
(262)1to7step2
(263)fact*Y
(264)死循环
(265)ctrl+break
(266)72
(267)12
(268)8
(269)fanma
(270)I=1
(271)n=n+4-26
(272)fact=fact*k
(273)temp=1/fact(n)
(274)Callcompare(data,temp,flag)
(275)UBound(arry)
(276)2
(277)chr(n)
(278)413
(279)631
(280)8
(281)5*x+3*y+z/3=100
(282)149162536
(283)7
(284)2次
(285)813
(286)-p*x
(287)Abs(item)>
=eps
(288)fx(x,result)
(289)True
(290)I=I+1
(291)x=x+1
(292)x/2或Sqr(x)
(293)False
(294)True
(295)Fun1(x)
(296)23
(297)47
(298)kmod10或Right(CStr(k),1)
(299)Len(st)
(300)print“*”;
(301)9
(302)5
(303)36
(304)18
(305)a(I,j)=1
(306)Print
(307)int(Rnd*900+100)或100+Int(900*Rnd)
(308)n1=n1+1
(309)m=20n=10
(310)X=10Y=15
(311)m=20n=10
(312)X=20Y=10
(313)num>
1
(314)num\10
(315)s
(316)n=1
(317)m*n*x/x^n
(318)Picture1.Print
(319)a(1,1)
(320)a(i,j)
(321)s=25
(322)s=50
(323)s=75
(324)I=Fun1(i)
(325)Fun1=Fun1+j
(326)窗体或控件
(327)控件或窗体
(328)SelectCasex
(329)CaseElse或CaseIs>
100
(330)198
(331)2
(332)2
(333)6.5
(334)4913
(335)19.5
(336)thisisabook.
(337)ThisIsABook.
(338)Mid(source,1,1)<
>
1"
(339)2
(340)Mid(source,i,1)="
(341)flag=1
(342)Imod13=1AndImod23=2AndImod33=3
(343)Untilflag=0或Whileflag=1
(344)fact=fact*k
(345)temp=1/fact(n)
(346)j=j+1
(347)CallInsert(a)
(348)a()AsInteger
(349)a(J)=a(J–1)
(350)Getp=Getp+1
(351)mMod10
(352)2^n
(353)fact=1
(354)abs(x1-x2)>
=1e-6或abs(x1-x2)>
=0.000001
(355)sum=0
(356)kmodn=0
(357)ReDimPreservea(j)
(358)Sqr(sum)=Fix(Sqr(sum))
(359)98
(360)Comp(Sum,Flg)
(361)Str(n)
(362)J*10
(363)False
(364)ExitSub
(365)Val(Text1.Text)
(366)Str(num)或num
(367)P=P-2
(368)X&
Str(P)
(369)Command1
(370)Command2
(371)fact(i)
(372)5
(373)9
(374)iModk=0
(375)ExitFor
(376)246
(377)Chr(n)
(378)T=t+k
(379)7
(380)1
(381)(Nmod10)*10+N\10
(382)Int(100+Rnd*900)
(383)s1=s1+1
(384)DimnAsInteger,termAsSingle,tAsSingle
(385)term=term+t
(386)t=2To4
(387)p+t
(388)k=k+1
(389)2347
(390)47
(391)1491625
(392)3
(393)7
(394)2
(395)iMod3=0
(396)d=d+1
(397)str(d)
(398)1To9
(399)n=a*100+b*10+c
(400)nextb
(401)7
(402)dir1.path=drive1.drive
(403)1tom
(404)mid(b,j,1)
(405)abs(x-x1)<
=1e-6
(406)x^3-2*x^2+7*x+4
(407)Int(Rnd*90)+10
(408)xmod2=0
(409)n1=n1+1
(410)tMod2
(411)Len(b)
(412)1000
(413)n=k
(414)n=n\k
(415)k=k+1
(416)Form1.hide
(417)show
(418)32
(419)val(txtInput)
(420)prime(I)
(421)ExitFunction
(422)sum=sum+i
(423)sum=sum-max-min
(424)sum=1
(425)sum>
n
(426)c<
50andc=int(c)
(427)fact*y
(428)Len(s)
(429)mid(s,i,1)
(430)List1.AddItemk
(431)x*fact(x-1)
(432)prime(x)
(433)false
(434)1to9
(435)I+1to10
(436)>
(437)n=9
(438)n=3
(439)6
(440)k
(441)a(k,j)
(442)6
(443)4
(444)a(1,1)
(445)Max<
a(i,j)
(446)41480
(447)221080
(448)i=fact(i)
(449)Len(CStr(n))或Len(Str(n))-1
(450)Mid(CStr(n),i,1)^Len(CStr(n))或Mid(Str(n),i+1,1)^Len(Str(n))-1)
(451)655
(452)65
(453)21
(454)45
(455)AABCBAABCCBAABC
(456)117
(457)63
(458)Int(90*Rnd+10)
(459)10-i
(460)A(j)>
A(j+1)
(461)11是素数
(462)12不是素数
(463)xModi=0
(464)6
(465)9
(466)m=Len(s)
(467)m=m-1
(468)Text2.Text="
是回文"
(469)i=1
(470)n=n+4-26
(471)i=i+1
(472)0
(473)y=y/x(i)
(474)1Toi
(475)sqr(Sum)=Int(Sqr(Sum))AndSqr(c)=Int(Sqr(c))
(476)64
(477)321
(478)32
(479)123
(480)6
(481)1
(482)等/级/考/试/
(483)i+1
(484)A(i)<
A(j)
(485)A(I)=A(J)
(486)fact=1
(487)fact
(488)10
(489)11
(490)16
(491)StAsString
(492)Mid(St,i,1)
(493)Num<
0或Num
(494)Num\10
(495)S
(496)fac=1
(497)Abs(x)>
(498)x=1/fac(k)
(499)4*fun1(n)
(500)(-1)^(i-1)/(2*i-1)
(501)21
(502)1321
(503)1516
(5