Visual Basic:Which of the following segments will call the method ReadData four times?Which of the following segments will call the method ReadData four times?_____ A) Dim k As Integerk = 1While k 4ReadData()k = k + 1End WhileB) Dim i As Integeri = 0
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 07:51:11
Visual Basic:Which of the following segments will call the method ReadData four times?Which of the following segments will call the method ReadData four times?_____ A) Dim k As Integerk = 1While k 4ReadData()k = k + 1End WhileB) Dim i As Integeri = 0
Visual Basic:Which of the following segments will call the method ReadData four times?
Which of the following segments will call the method ReadData four times?_____
A) Dim k As Integer
k = 1
While k 4
ReadData()
k = k + 1
End While
B) Dim i As Integer
i = 0
While i
Visual Basic:Which of the following segments will call the method ReadData four times?Which of the following segments will call the method ReadData four times?_____ A) Dim k As Integerk = 1While k 4ReadData()k = k + 1End WhileB) Dim i As Integeri = 0
答案是b,在0,2,3,4的时候被调用.1的时候返回while处,没被调用.