【答案】假定有以下函数过程:Function Fun(s As String) As String Dim s1 As Stri

返回首页智慧树时间:2022-11-15 19:17
题目 / 答案提交正确答案

假定有以下函数过程:Function Fun(s As String) As String Dim s1 As String For i = 1 To Len(s) s1 = UCase(Mid(s, i, 1)) + s1 Next i Fun = s1End Function在窗体上添加一个命令按钮,然后编写如下事件过程:Private Sub Command1_Click() Dim Str1 As String Dim Str2 As String Str1 = InputBox(“请输入一个字符串”) Str2 = Fun(Str1) Print Str2End Sub程序运行后,单击命令按钮,如果在输入对话框中输入字符串“abcdefg”,则单击“确定”按钮后再窗体上输出的结果为()。

A.Abcdefg

B.ABCDEFG

C.gfedcba

D.GFEDCBA

正确答案:第一空: 18

本文链接:https://www.oyuuu.com/Ti/ZhiHuiShu/352368.html

关键字  浏览量:
上一篇:有如下函数过程:Function secproc(x As Integer, y As Integer, z As In
下一篇:假定有如下的Sub过程:Sub fun(x As Single, y As Single) t = x x = t /
相关问题