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/05/04 15:13:23
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 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处,没被调用.