[單項(xiàng)選擇題] 執(zhí)行下面的程序,單擊窗體后在窗體上顯示的結(jié)果是 ______。Private Sub form_ Click() Dim Str1 As St
2021-07-20
[單項(xiàng)選擇題] 執(zhí)行下面的程序,單擊窗體后在窗體上顯示的結(jié)果是 ______。Private Sub form_ Click() Dim Str1 As String, Str2 As String Dim Str3 As String, I As Integer Str1 = "e" for I = t To 2 Str2 = Ucase (Str1) Str1 = Str2 & Str1 Str3 = Str3 & Str1 str1 = Chr (Asc(Str1) + I) Next I Print Str3End Sub
A.EeFF
B.eEfF
C.EEFF
D.eeFF
正確答案:A
參考解析:本題的難點(diǎn)是熟悉下列字符串處理內(nèi)部函數(shù):Asc(x)為求單個(gè)字符ASCII代碼函數(shù),Chr[$](x)返回以x為ASCII代碼值的字符,Ucase[$](x)將x字符串中所有小寫字符改為大寫字符。
詞條內(nèi)容僅供參考,如果您需要解決具體問題
(尤其在法律、醫(yī)學(xué)等領(lǐng)域),建議您咨詢相關(guān)領(lǐng)域?qū)I(yè)人士。