VB.Net習(xí)題答案_第1頁
VB.Net習(xí)題答案_第2頁
VB.Net習(xí)題答案_第3頁
VB.Net習(xí)題答案_第4頁
VB.Net習(xí)題答案_第5頁
全文預(yù)覽已結(jié)束

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

VB.Net 習(xí)題集參考答案第一章 VB.NET環(huán)境和程序設(shè)計初步一、CDABB AADBA BDCCA ADB二、(1)引入了.net 框架(2)可視化編成技術(shù)(3)解決方案(4)自動隱藏(5)視圖、工具箱、可??浚?)工具、選項、項目(7)對象的性質(zhì),來描述和反映對象特征的參數(shù)(8)對象的動作、行為(9)Form窗體、Font(10)按分類順序、按字母順序(11)FlatStyle 、System(12)項目、屬性、常規(guī)(13)SelectionStart(14)ReadOnly(15)TabIndex、0(16)全部保存第二章 VB.NET語言基礎(chǔ)和順序結(jié)構(gòu)一、BCADB ADBBC DBCBA CACAD AD二、(1)整型、長整型、雙精度型、貨幣型(2)(x mod 10)*10+x10(3)Math.Sin(15*3.14/180) +Math.Sqrt(x+Math.Exp(3)/Math.Abs(x-y)-Math.Log(3*x)(4)(a+b)/(1/(c+5)-c*d/2)(5)x mod 5 =0 Or x mod 9 =0(6)False(7)-4、3、-3、3、-4、4(8)CDEF(9)X 0 and y 0 Or x0 and y= “A” and Ucase(s) 20、x20、Isz and x+zy and y+zxX=y and y=zX=y Or y=z Or x=zMsgbox(“是其他三角形”)(8) d.year mod 4 = 0 and d.year mod 100 0d.year第四章 循環(huán)結(jié)構(gòu)一、 BCBCB二、(1) 33(2) 10(3) 4、12(4) Len(a)、Int(n2)、Mid(a,n-I+1,1)、Mid(a,n-I+1,1)(5) n mod 3 =1 and n mod 5 =1 and m mod 7 =1、while CountN 5 (6) n mod 3=2 and n mod 4=3 and n mod 5=4 and n mod 6=5、Exit For(7) X+1、Xy and yz、n=n+1、Label1.Text &=(8) Min1=mark、Min1=mark、Max1=mark、Aver=aver + mark、(aver-max1-min1)/5第五章 數(shù)組一、 BBCDD二、(1) a(7)、a(j+1)=a(j)、a(1)=t、vbcrlf(2) key=a(i)、a(j-1)=a(j)、Preserve a(Ubound(a)-1)(3) b(j,i)=n、n+5、a(i,k)*b(k,j)(4) Preserve a(n+1)、a(i+1) = a(i)、a(I+1)=m、Ubound(a)(5) Tag = True、t = a(j)、a(j)=a(j+1)、Exit For(6) Chr(Int(Rnd()*26 +65)、n-1、GoTo Re、c(7) Chr(Int(Rnd()*10 +65)、k=j、a(i)=a(k)、count+1、i+count第六章 過 程一、BDCDA DCB二、(1)1 4 4、用遞歸函數(shù)實現(xiàn)將十進(jìn)制數(shù)以r進(jìn)制顯示(2)6、用輾轉(zhuǎn)相減法求m、n的最大公約數(shù)(3)IsP=True、m mod i =0、p1 and p2、=p2(4)Tag、c=a(0)、Ubound(a)-1、a(Ubound(a)=c、x=a(Ubound(a)、To 1 Step 1、a(0)=c(5)”數(shù)字” & Chr(i+48) & “出現(xiàn)次數(shù)為” & n(i)ByRef num%(), ByVal s as StringMid(s,i,1)num(j)+1(6)i , k , tm*10+i mod 10i10True(7) Mid(str1,1,j-1)、InStr(str1,”,”)、I(8)ByRef a%(), ByRef n as Integerm0m to nn=n-1m=m-1(9)bb,Val(Textbox1.Text)vbcrlfja(j)a(i+1) = a(i)第七章 用戶界面設(shè)計一、 DCADC BDDAC BBDDD A二、 (1) CheckState(2) Enabled(3) 0(4) Items.Count-1(5) Clear(6) 下拉式列表框(7) Scroll(8) LargeChange(9) Value(10) 15000(11) System.Diagnostics.Process.Start(12) LinkArea(13) &(14) -(減號)(15) ContextMenu(16) ContextMenu(17) Hide(18) Sub Main(19) MouseButtons.Right(20) e.Shift(21) i+1、ListBox1.Items.RemoveAt(j)(22) True、e.Handled = True、CheckBox1.Checked、TextBox3.Focus()、TextBox4.Text=Total(23) Timer1.Enabled=TrueM=Minute(Now)Val(TextbOX1.text)=h and val(textbox2.text) = m(24) f2.show()ShowDialog()OpenFileDialog1.FileNamePictureBox1.LeftMe.Widthf2.TextBox2.Text = t第八章 文 件一、 CBADC AADBD ABC二、 的(1) FileOpen(1,”C:Stud.txt”,OpenMode.OutPut)e.KeyCode=Keys.EnterWriteLine(1,TextBox1.Text)(2) OpenMode.InputOpenMode.OutputNot EOF(1)Str=LineInput(1)FileClose()(3) OpenMode.AppendOpenMode.InputStr=LineInput(2)(4) OpenMode.RandomFileGet(1,s,5)S.mark=s.mark+5FileGet(1,s,5)(5) “教授”,“副教授”Gz=Gz*1.0Wr

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論