[單項選擇題] 單擊窗體時,下列程序的執(zhí)行結(jié)果是 Private Sub Invert(By Val xstr As String,ystr As Strin
2021-07-20
[單項選擇題] 單擊窗體時,下列程序的執(zhí)行結(jié)果是 Private Sub Invert(By Val xstr As String,ystr As String) Dim tempstr AS String Dim I AS Integer I=Len(xstr) Do While I>=1 tempstr=tempstr + Mid(xstr,I,1) I=I - 1 Loop ystr=tempStr End Sub Private Sub Form_Click( ) Dim s1 As String,s2 As String S1="abcdef" Invert S1,S2 Print S2 End Sub
A.a(chǎn)bcdef
B.a(chǎn)fbecd
C.fedcba
D.defabc
正確答案:C
參考解析:解析:Invert(By Val xstr As String,ystr As String)的作用是將參數(shù)xstr的字符逆序處理,然后賦值給ystr,而ystr是按地址引用的,可以直接返回處理結(jié)果。
詞條內(nèi)容僅供參考,如果您需要解決具體問題
(尤其在法律、醫(yī)學(xué)等領(lǐng)域),建議您咨詢相關(guān)領(lǐng)域?qū)I(yè)人士。