【正文】
Public Sub Proc(n As Integer, ByVal m As Integer) n=n Mod 10 m=m Mod 10 End Sub A) 12 32 B) 2 32 C) 2 3 D) 12 3 2 一個(gè)工程必須包含的文件的類型是 ____ A) *.vbp *.frm *.frx B) *.vbp *.cls *.bas C) *.bas *.ocx *.res D) *.frm *.cls *.bas 2 有如下事件過(guò)程: Private Sub Command1_Click() b=10 Do Until b=1 a=InputBox(請(qǐng)輸入 a 的值 ) a=Val(A) b=InputBox(請(qǐng)輸入 b 的值 ) b=Val(b) a=a * b Loop Print a End Sub 程序運(yùn)行后,依次輸入數(shù)值 30, 20, 10,- 1,輸出結(jié)果為 ____ A) 6000 B) - 10 C) 200 D) 6000 2 VB 是一種面向?qū)ο?的可視化程序設(shè)計(jì)工具,下列關(guān)于面向?qū)ο蟪绦蛟O(shè)計(jì)的描述,正確的是 ____ A)面向?qū)ο蟪绦蛟O(shè)計(jì)完全不同于結(jié)構(gòu)化程序設(shè)計(jì); B)對(duì)象的屬性、方法和事件稱為對(duì)象的三要素; C) VB 中的類就是一種變量 D)面向?qū)ο蟪绦蛟O(shè)計(jì)的三大特征是封裝性、繼承性和事件驅(qū)動(dòng) 2 設(shè)有以下循環(huán)結(jié)構(gòu) Do 循環(huán)體 Loop While條件 則以下敘述中錯(cuò)誤的是 ____ A、若 “條件 ”是一個(gè)為 0 的常數(shù),則一次也不執(zhí)行循環(huán)體 B、 “條件 ”可以是關(guān)系表達(dá)式、邏輯表達(dá)式或常數(shù) C、循環(huán)體中可以使用 Exit Do 語(yǔ)句 D、如果 “條件 ”總是為 True,則不停地執(zhí)行循環(huán)體 在設(shè)計(jì)階段,當(dāng)雙擊窗體上的某個(gè)控件時(shí),所打開(kāi)的窗口是 ____ A、工程資源管理器窗口 B、工具箱窗口 C、代碼窗口 D、屬性窗口 二、 填空題: 新建一個(gè)工程,內(nèi)有兩個(gè)窗體,窗體 Form1 上有一個(gè)命令按鈕 Command1,單擊該按鈕, Form1 窗體消失,顯示窗體 Form2,程序如下,試補(bǔ)充完整: Private Sub Command1_Click() _(1)_ Form2. _(2)_ End Sub 若 A=20, B=80, C=70, D=30,則表達(dá)式 A+B160 Or (B+C200 And Not D60)的值是 ____。 以下程序代碼實(shí)現(xiàn)單擊命令按鈕 Command1 時(shí)形成并輸出一個(gè)主對(duì)角線上元素值為 1,其他元素值為 6 0 的 66 階方陣。 Next J Print Next I End Sub 以下程序循環(huán)的執(zhí)行次數(shù)是 ____。 執(zhí)行以下程序段,并輸入 ,則程序的輸出結(jié)果應(yīng)是: ________ N=Str(InputBox(“請(qǐng)輸入一個(gè)實(shí)數(shù): ”)) P=InStr(N,”.”) Print Mid(N,P) 7 下述定義中的函數(shù)所計(jì)算的數(shù)學(xué)表達(dá)式是 A(0)+A(1)*x+A(2)*x^2+?? +A(N1)+A(N)*x^N,請(qǐng)?zhí)羁铡? Option Base 1 Private Sub Command1_Click() Dim a a=Array(678,45,324,528,439,387,87,875,273,823) For i=___(1)___ For j=____(2)__ If a(i) __(3)___ a(j) then a1=a(i) a(i)=a(j) a(j)=a1 End if Next j Next i For i=1 to 10 Print a(i) ___(4)___ End Sub 計(jì)時(shí)器控件能有規(guī)律的以一定時(shí)間間隔觸發(fā) ____事件,并執(zhí)行該事件過(guò)程中的程序代碼。 1 在順序表( 6, 10, 16, 18, 25, 28, 30, 48, 50, 52)中,用二分查找法查找關(guān)鍵碼值 20,則需要進(jìn)行關(guān)鍵碼比較次數(shù)為 ____。 Private Sub Form_Load() (1) End Sub Private Sub Form_Click() (2) End Sub 8 Private Sub Timer1_Timer() (3) End Sub 編寫(xiě) 程序 , 用于計(jì)算數(shù)學(xué)表達(dá)式 S=1222+3242+…+ ( N1) 2N2 窗體上有一個(gè)輸入編輯框( text1)、一個(gè)輸出編輯框( text2)和一全命令按鈕( mand1),編程實(shí)現(xiàn)如下功能:在輸入框中 錄入以空格為分隔標(biāo)志的正整數(shù),點(diǎn)擊運(yùn)行按鈕,將找出其中的最大數(shù)并將其刪除后,按原順序輸出在輸出框中。為數(shù)值表達(dá)式,設(shè)置每次搜索的起點(diǎn)。 string1 必要參數(shù)。 string2 必要參數(shù)。 9 (英文版 ) Two regulations promulgated for implementation is in the party in power for a long time and the rule of law conditions, the implementation of prehensive strictly strategic plan, implementation in accordance with the rules and discipline to manage the party, strengthen innerparty supervision of major initiatives. The two regulations supporting each other, the code adhere to a positive advocate, focusing on morality is of Party members and Party leading cadres can see, enough to get a high standard。 the second part is the interpretation of the two fundamental principles of the revision of laws and regulations in the party。 the fourth part on how to grasp the implementation of the two regulations of the party. code and Regulations revised the necessity and revised 10 history of the CPC Central Committee the amendment to the Chinese Communist Party members and leading cadres honest politics several guidelines and Chinese Communist Party discipline and Punishment Regulations column 1 by 2020 to strengthen party laws and regulations focus. Two party regulations revision work lasted a Years, pooling the wisdom of the whole party, ideological consensus, draw historical experience, respect for the wisdom of our predecessors, which reflects the unity of inheritance and innovation。s leadership, to solve the masses of the people reflect a focus on the problem. The new revision of the code and rule , reflects the party39。s eighteen years prehensive strictly practice. (a) revised two regulations of the party need of the ICAC guidelines in in 1997 Leaders as members of the Communist Party of China clean politics certain criteria (Trial) based on revised, the promulgation and implementation of January 2020, to strengthen the construction of the contingent of leading cadres play an 11 important role. But with the party to manage the party strictly administering the deepening, has not been able to fully meet the actual needs. Content is too plicated, eight prohibition, 52 are not allowed to hard to remember, and also difficult to put into practice。 the third is banned terms and discipline law, both with the party discipline, disciplinary regulations repeat and Criminal law and other laws and regulations repeat。 two is the political discipline regulations is not prominent, not specific, for violation of the party constitution, damage the 12 authority of Party Constitution of misconduct lack necessary and serious responsibility to pursue。s eighteen, ten eight plenary, the spirit of the Fourth Plenary Session of the Eleventh Central Committee and General Secretary Xi Jinping important instructions on the revised low political criterion and Regulations , highlighting the ruling party characteristics, serious discipline, the discipline quite in front of the law, based on the current, a longterm, advance as a whole, with Bu Xiuding independent rule and rule . Main principle is: first, adhere to the party constitution to follow. The constitution about discipline and selfdiscipline required specific, awaken the party constitution of party passes party consciousness, maintaining the authority of the constitution. General Secretary Xi Jinping pointed out that no rules, no side round. Party constitution is the fundamental law, the party must follow the general rules. In early 2020 held the eighth session of the Central Commission for Discipline Inspection Fifth Plenary Session of the 16th Central Committee, Xi Jinping again pointed out that constitution is th