小张编写程序,实现把数据temp插入到升序序列中,得到一个新的升序序列,原升序序列各元素已依次存放在数组元素a(1),a(2),a(3),……,a(n)中。他编写的VB程序段如下: If temp>=a(n) Then a(n+1)=temp Else j=n Do While j>=l And temp<a(j) j=j-1 Loop End If 要使程序实现上述功能,则方框①②中的语句分别是( )
A . a(j+1)=a(j)a(j+1)=temp
B . a(j)=a(j-1)a(j+1)=temp
C . a(j+1)=a(j)a(j)=temp
D . a(j)=a(j-1)a(j)=temp
答案:A