学进去-教育应平等而普惠
试题
类型:操作题
难度系数:0.40
所属科目:高中信息技术
对一段字符(仅包含大小写字母和数字)加密,加密规则为:①字母和数字都往后循环顺移3位:如“a”变为“d”,“y”变为“b”;“0”变为“3”,“7”变为“0”,②加密后字母在前,数字在后,③字母按逆序排列,数字按顺序排列,如输入明文“a1b7Z8x3”,密文为“aC3d4016”。
                      
(1)根据程序代码分析,“加密”按钮的名称是___________。
(2)根据加密规则明文“9G78fbY5”,则密文为__________。
(3)请在划线处填入合适的代码:
Private Sub Com_jm_Click()
Dim x As String, ch As String, cl As String
Dim sl As String, s2 As String, s As String
Dim i As Integer, n As Integer, y As Integer
x=Text1.Text
n=Len(x)
For i=1 To n
ch=Vid(x, i, 1)
If ch>= "0" And ch<= "9" Then
____

s2=s2 & Str(y)

Elself ch>= "a" And ch<=" z" Then
y=(Asc(ch)-Asc("a")+3) Mod 26
____
s1=c1+s1
Else
y=(Asc(ch)-Asc("A")+3) Mod 26
c2=Chr(Asc("A")+y)
s1=c2+sl
End If
Next i
____
Text2.Text=s
End Sub
编辑解析赚收入
收藏
|
有奖纠错

同类型试题

优质答疑

y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2

用户名称
2019-09-19

y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2

用户名称
2019-09-19
我要答疑
编写解析
解析:

奖学金将在审核通过后自动发放到帐

提交
我要答疑
我要答疑:
提交