What function does the ‘while’ statement perform in this code?

Consider the following ASP code:
<%
pos = Instr(s, “”)
While pos > 0
s = Mid(s, 1,pos) & “” & Mid(s,pos+1)
pos = InStr(pos+2, s, “”)
Wend
%>
What function does the ‘while’ statement perform in this code?

Consider the following ASP code:
<%
pos = Instr(s, “”)
While pos > 0
s = Mid(s, 1,pos) & “” & Mid(s,pos+1)
pos = InStr(pos+2, s, “”)
Wend
%>
What function does the ‘while’ statement perform in this code?

A.
It executes a statement or statements as long as a Boolean condition is true.

B.
It executes one of several groups of statements.

C.
It evaluates an expression or Boolean condition.

D.
It determines whether an expression is true or false.



Leave a Reply 0

Your email address will not be published. Required fields are marked *