高等继续教育 / VisualBasic程序设计
正确率:100%
题型描述: 单选题
运行下列程序段后,输出结果为:() 。Private Sub Form_Click(): Dim i As Integer: For i = 0 To 15 Step 1: Print i,: i = 2 * i + 1: Next i: End Sub
A.0 2 6 14
B.0 1 3 5 7 9 11 13 15
C.0,2,6,14
D.0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
运行下列程序段后,输出结果为:() 。Private Sub Form_Click(): Dim i As Integer: For i = 0 To 15 Step 1: Print i,: i = 2 * i + 1: Next i: End Sub
A.0 2 6 14
B.0 1 3 5 7 9 11 13 15
C.0,2,6,14
D.0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
参考答案:
佳题速递: