資源簡介 浙江省金華市曙光中學(xué)2018-2019學(xué)年高二信息技術(shù)上學(xué)期期中試題溫馨提示:所有試題答案都要答在答題卡上,答在試卷上的答案無效,總分50分!一、單項(xiàng)選擇題(每題3分,共30分)1.計算表達(dá)式Val("10") + Len("2.3")的值是( ) A.12.3 B.102.3 C. 102 D.132. 下列選項(xiàng)中,可以作為VB變量名的是()A.9x B.x_9 C.9_x D.fun_ction3. 在Visual Basic中,語句TName.Caption = "2012倫敦"中的TName是A. 對象名 B.屬性名 C.屬性值 D.事件名4.下列Visual Basic表達(dá)式的值等于56的是A.Mid("1234567",5,3) B.Len("55") + 1 C.Sqr(56) D.Abs(-55) + 15.以下程序段是實(shí)現(xiàn)x*y(x、y均為自然數(shù))運(yùn)算的程序段,則劃線處的語句應(yīng)該是( )x=Val(Text1.Text)y=Val(Text2.Text)s = 0:j = 1Do While j <= y j = j + 1LoopText3.Text=Str(s)A.s=s *j B.s=s+x C.s=x*j D.s =s*x6. 使用選擇排序的方法對數(shù)據(jù)8、6、1、9、4 從大到小排序,需要進(jìn)行數(shù)據(jù)比較、數(shù)據(jù)互換的次數(shù)分別是( )A、4,5 B、10,2 C、3,3 D、10,47. 有一個數(shù)組,采用冒泡排序,第一遍排序后的結(jié)果為:4,10,5,32,6,7,9,17,24那么該數(shù)組的原始順序不可能的是 A.10,5,32,6,7,9,17,24,4 B. 10,5,32,6,7,9,4,17,24C.10,5,32,4,6,7,9,17,24 D. 4,10,5,32,17,9,24,6,78. for i=1to 2For j=5 to i+1 step -1 If a(j)>a(i) then t=a(j):a(j)=a(i):a(i)=t end ifnext jnext i數(shù)組元素a(1)到a(5)的值一次為:33 24 45 16 77 經(jīng)過該程序段加工后,數(shù)組元素a(1)到a(5)的值依次為:A. 77 33 45 16 24 B. 77 45 33 16 24C. 77 24 45 16 33 D. 77 45 33 24 169.Private Sub Command1_Click()n = 100: Sum = 0: k = 1 Do while k<=n j=1 Do while j<=k sum=sum+1:j=j+1 Loop k=k*2 Loop End sub該字段運(yùn)行后,變量sum的值是A.256 B. 255 C.128 D. 127 10.有如下 VB 程序段:Dim p As Integer, q As Integer, s As Integer, t As Integerp = Val(Text1.Text) :t=0For q = p+ 1 To 2 * ps = (p * q) Mod (q - p)If s = 0 Thent = t+ 1End IfNext qLabel1.Caption = Str(t)該程序段運(yùn)行時,在文本框Textl中輸入8 , 則在標(biāo)簽Labell中顯示的內(nèi)容是() A. 3 B. 4 C. 5 D. 6二、非選擇題(11題每空2分,12題 6 分,共20分)11.n個數(shù)據(jù)元素存放到數(shù)組a(n)中,對這n個數(shù)據(jù)進(jìn)行降序排序算法程序段如下: For i=1 to n-1 For j=n to __①_____step -1 If________②___then t=a(j): _③_______: a(j-1)=t end if next j next in個數(shù)據(jù)元素存放到數(shù)組a(n)中,對這n個數(shù)據(jù)進(jìn)行升序排序算法程序段如下: For i=1 to n-1 k=_____④ For j=___⑤_____ to n If____⑥______then k=j Next j If ___⑦_(dá)___then t=a(i): a(i)=a(k): a(k)=t end if next i12.有如下程序段:Dim a(1 to 5) as integer ,s as string a(1)=77:a(2)=73:a(3)=87: a(4)=80:a(5)=66 i=1 : n=5 Do while i<=3 j=1 Do while j<=n-i If a(j)>a(j+1) then a(j)=a(j)+a(j+1):a(j+1)=a(j)-a(j+1):a(j)=a(j)-a(j+1) End if j=j+1 Loop S=s+str(a(i)) i=i+1 Loop Text1.Text=sEnd sub該程序運(yùn)行后,文本框中顯示的是__________________高二信息技術(shù)選擇題答案1-10 DBADB DDBDB 展開更多...... 收起↑ 資源預(yù)覽 縮略圖、資源來源于二一教育資源庫